1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Address Yury's comment 2.

This commit is contained in:
Brendan Dahl 2011-12-02 08:58:40 -08:00
parent 3ae06c96ad
commit 7d57f5d2eb

View file

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