Replaces all preprocessor directives with PDFJSDev calls.

This commit is contained in:
Yury Delendik 2016-10-14 10:57:53 -05:00
parent bf52ff156d
commit 0576c9c6c6
32 changed files with 1145 additions and 904 deletions

View file

@ -25,7 +25,8 @@
factory((root.pdfjsWebDownloadManager = {}), root.pdfjsWebPDFJS);
}
}(this, function (exports, pdfjsLib) {
//#if GENERIC || CHROME
if (typeof PDFJSDev === 'undefined' || PDFJSDev.test('GENERIC || CHROME')) {
/* jshint -W082 */
function download(blobUrl, filename) {
var a = document.createElement('a');
if (a.click) {
@ -106,5 +107,5 @@
};
exports.DownloadManager = DownloadManager;
//#endif
}
}));