mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Fix fallback after new download.
This commit is contained in:
parent
dc4e53ca00
commit
87d9651eb7
2 changed files with 23 additions and 4 deletions
|
@ -468,7 +468,11 @@ var PDFView = {
|
|||
return;
|
||||
this.fellback = true;
|
||||
var url = this.url.split('#')[0];
|
||||
FirefoxCom.request('fallback', url);
|
||||
FirefoxCom.request('fallback', url, function response(download) {
|
||||
if (!download)
|
||||
return;
|
||||
PDFView.download();
|
||||
});
|
||||
},
|
||||
|
||||
navigateTo: function pdfViewNavigateTo(dest) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue