Address Yury's comment 2.
This commit is contained in:
parent
3ae06c96ad
commit
7d57f5d2eb
@ -263,9 +263,10 @@ var PDFView = {
|
|||||||
var container = document.getElementById('viewer');
|
var container = document.getElementById('viewer');
|
||||||
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…
x
Reference in New Issue
Block a user