[Pkg-javascript-commits] [pdf.js] 38/210: Fixes DownloadManager for IE10 and above

David Prévot taffit at moszumanska.debian.org
Thu Jun 5 14:20:59 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch upstream
in repository pdf.js.

commit 19586721fbe05492cc0a415a4786ee64ceec3892
Author: Tim van der Meij <timvandermeij at gmail.com>
Date:   Sat Apr 26 00:07:52 2014 +0200

    Fixes DownloadManager for IE10 and above
---
 web/download_manager.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/web/download_manager.js b/web/download_manager.js
index 20835aa..965cc70 100644
--- a/web/download_manager.js
+++ b/web/download_manager.js
@@ -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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list