1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Add firefox ui fallback on error/unsupported feature.

This commit is contained in:
Brendan Dahl 2012-05-10 15:54:58 -07:00
parent 52832894f5
commit fca6f352e4
3 changed files with 45 additions and 2 deletions

View file

@ -374,6 +374,11 @@ var PDFView = {
}
},
fallback: function pdfViewDownload() {
var url = this.url.split('#')[0];
FirefoxCom.request('fallback', url);
},
navigateTo: function pdfViewNavigateTo(dest) {
if (typeof dest === 'string')
dest = this.destinations[dest];