Fixes DownloadManager for IE10 and above

This commit is contained in:
Tim van der Meij 2014-04-26 00:07:52 +02:00
parent 094d0e24ce
commit 19586721fb

View File

@ -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);