Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit dd7240e

Browse files
authored
Merge pull request #40 from apeinsip/IE11
Fixed IE11 Problem - webViewerLoad needs an empty string
2 parents ee7de57 + 9fc47d0 commit dd7240e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/angular-pdfjs-viewer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
this.disableWorker = function(value) {
3434
if (typeof value === 'undefined') value = true;
3535
config.disableWorker = value;
36-
}
36+
};
3737

3838
this.setVerbosity = function(level) {
3939
config.verbosity = level;
@@ -394,7 +394,7 @@
394394
}
395395

396396
// initialize the pdf viewer with (with empty source)
397-
window.PDFJS.webViewerLoad();
397+
window.PDFJS.webViewerLoad("");
398398

399399
function onPdfInit() {
400400
initialised = true;

src/angular-pdfjs-viewer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
this.disableWorker = function(value) {
3434
if (typeof value === 'undefined') value = true;
3535
config.disableWorker = value;
36-
}
36+
};
3737

3838
this.setVerbosity = function(level) {
3939
config.verbosity = level;
@@ -91,7 +91,7 @@
9191
}
9292

9393
// initialize the pdf viewer with (with empty source)
94-
window.PDFJS.webViewerLoad();
94+
window.PDFJS.webViewerLoad("");
9595

9696
function onPdfInit() {
9797
initialised = true;

0 commit comments

Comments
 (0)