1
0
Fork 0
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:
Brendan Dahl 2012-06-04 17:33:27 -07:00
parent dc4e53ca00
commit 87d9651eb7
2 changed files with 23 additions and 4 deletions

View file

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