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:
parent
52832894f5
commit
fca6f352e4
3 changed files with 45 additions and 2 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue