Skip to content

Commit

Permalink
Address Yury's comment 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandahl committed Dec 2, 2011
1 parent 3ae06c9 commit 7d57f5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/viewer.js
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7d57f5d

Please sign in to comment.