|
|
|
@ -25,8 +25,10 @@
@@ -25,8 +25,10 @@
|
|
|
|
|
factory((root.pdfjsWebDownloadManager = {}), root.pdfjsWebPDFJS); |
|
|
|
|
} |
|
|
|
|
}(this, function (exports, pdfjsLib) { |
|
|
|
|
if (typeof PDFJSDev === 'undefined' || PDFJSDev.test('GENERIC || CHROME')) { |
|
|
|
|
// eslint-disable-next-line no-inner-declarations
|
|
|
|
|
if (typeof PDFJSDev !== 'undefined' && PDFJSDev.test('FIREFOX || MOZCENTRAL')) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function download(blobUrl, filename) { |
|
|
|
|
var a = document.createElement('a'); |
|
|
|
|
if (a.click) { |
|
|
|
@ -63,7 +65,7 @@ if (typeof PDFJSDev === 'undefined' || PDFJSDev.test('GENERIC || CHROME')) {
@@ -63,7 +65,7 @@ if (typeof PDFJSDev === 'undefined' || PDFJSDev.test('GENERIC || CHROME')) {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function DownloadManager() {} // eslint-disable-line no-inner-declarations
|
|
|
|
|
function DownloadManager() {} |
|
|
|
|
|
|
|
|
|
DownloadManager.prototype = { |
|
|
|
|
downloadUrl: function DownloadManager_downloadUrl(url, filename) { |
|
|
|
@ -106,5 +108,4 @@ if (typeof PDFJSDev === 'undefined' || PDFJSDev.test('GENERIC || CHROME')) {
@@ -106,5 +108,4 @@ if (typeof PDFJSDev === 'undefined' || PDFJSDev.test('GENERIC || CHROME')) {
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
exports.DownloadManager = DownloadManager; |
|
|
|
|
} |
|
|
|
|
})); |
|
|
|
|