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:
parent
3ae06c96ad
commit
7d57f5d2eb
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue