Skip to content

Commit c15311c

Browse files
committed
Merge pull request mozilla#784 from arturadib/fix-783
Replacing URL flag format for download
2 parents 70767b4 + f2d54d3 commit c15311c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extensions/firefox/components/pdfContentHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pdfContentHandler.prototype = {
5252
}
5353

5454
let targetUrl = aRequest.URI.spec;
55-
if (targetUrl.indexOf('?pdfjs.action=download') >= 0)
55+
if (targetUrl.indexOf('#pdfjs.action=download') >= 0)
5656
throw NS_ERROR_WONT_HANDLE_CONTENT;
5757

5858
aRequest.cancel(Cr.NS_BINDING_ABORTED);

web/viewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ var PDFView = {
139139
},
140140

141141
download: function pdfViewDownload() {
142-
window.open(this.url + '?pdfjs.action=download', '_parent');
142+
window.open(this.url + '#pdfjs.action=download', '_parent');
143143
},
144144

145145
navigateTo: function pdfViewNavigateTo(dest) {

0 commit comments

Comments
 (0)