]> git.parisson.com Git - pdf.js.git/commitdiff
Replacing URL flag format
authorArtur Adib <arturadib@gmail.com>
Wed, 9 Nov 2011 01:02:28 +0000 (20:02 -0500)
committerArtur Adib <arturadib@gmail.com>
Wed, 9 Nov 2011 01:02:28 +0000 (20:02 -0500)
extensions/firefox/components/pdfContentHandler.js
web/viewer.js

index 444db1c1ffcc1c77cf2c587b30a50087458ba30e..67459b75929a19ca59e1c06a08a8461682cd8218 100644 (file)
@@ -52,7 +52,7 @@ pdfContentHandler.prototype = {
     }
 
     let targetUrl = aRequest.URI.spec;
-    if (targetUrl.indexOf('?pdfjs.action=download') >= 0)
+    if (targetUrl.indexOf('#pdfjs.action=download') >= 0)
       throw NS_ERROR_WONT_HANDLE_CONTENT;
 
     aRequest.cancel(Cr.NS_BINDING_ABORTED);
index 1ab2c555c60a2c65b83d9fba31682e7704cbc0d9..bfb3a43033a7f4ba84db6a06f681b0ff6c9b70da 100644 (file)
@@ -139,7 +139,7 @@ var PDFView = {
   },
 
   download: function pdfViewDownload() {
-    window.open(this.url + '?pdfjs.action=download', '_parent');
+    window.open(this.url + '#pdfjs.action=download', '_parent');
   },
 
   navigateTo: function pdfViewNavigateTo(dest) {