Skip to content

Commit

Permalink
Merge pull request #40 from apeinsip/IE11
Browse files Browse the repository at this point in the history
Fixed IE11 Problem - webViewerLoad needs an empty string
  • Loading branch information
moesjarraf committed Apr 13, 2017
2 parents ee7de57 + 9fc47d0 commit dd7240e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/angular-pdfjs-viewer.js
Expand Up @@ -33,7 +33,7 @@
this.disableWorker = function(value) {
if (typeof value === 'undefined') value = true;
config.disableWorker = value;
}
};

this.setVerbosity = function(level) {
config.verbosity = level;
Expand Down Expand Up @@ -394,7 +394,7 @@
}

// initialize the pdf viewer with (with empty source)
window.PDFJS.webViewerLoad();
window.PDFJS.webViewerLoad("");

function onPdfInit() {
initialised = true;
Expand Down
4 changes: 2 additions & 2 deletions src/angular-pdfjs-viewer.js
Expand Up @@ -33,7 +33,7 @@
this.disableWorker = function(value) {
if (typeof value === 'undefined') value = true;
config.disableWorker = value;
}
};

this.setVerbosity = function(level) {
config.verbosity = level;
Expand Down Expand Up @@ -91,7 +91,7 @@
}

// initialize the pdf viewer with (with empty source)
window.PDFJS.webViewerLoad();
window.PDFJS.webViewerLoad("");

function onPdfInit() {
initialised = true;
Expand Down

0 comments on commit dd7240e

Please sign in to comment.