Browse Source

Address Yury's comment 2.

Brendan Dahl 14 years ago
parent
commit
7d57f5d2eb
  1. 3
      web/viewer.js

3
web/viewer.js

@ -264,8 +264,9 @@ var PDFView = {
while (container.hasChildNodes()) while (container.hasChildNodes())
container.removeChild(container.lastChild); container.removeChild(container.lastChild);
var pdf;
try { try {
var pdf = new PDFJS.PDFDoc(data); pdf = new PDFJS.PDFDoc(data);
} catch (e) { } catch (e) {
this.error('An error occurred while reading the PDF.', e); this.error('An error occurred while reading the PDF.', e);
} }

Loading…
Cancel
Save