mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 23:28:06 +02:00
Fixes DownloadManager for IE10 and above
This commit is contained in:
parent
094d0e24ce
commit
19586721fb
1 changed files with 4 additions and 0 deletions
|
@ -68,6 +68,10 @@ var DownloadManager = (function DownloadManagerClosure() {
|
|||
|
||||
downloadData: function DownloadManager_downloadData(data, filename,
|
||||
contentType) {
|
||||
if (navigator.msSaveBlob) { // IE10 and above
|
||||
return navigator.msSaveBlob(new Blob([data], { type: contentType }),
|
||||
filename);
|
||||
}
|
||||
|
||||
var blobUrl = PDFJS.createObjectURL(data, contentType);
|
||||
download(blobUrl, filename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue