mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Prevent fallback when not ff extension.
This commit is contained in:
parent
b1bf3ae56a
commit
c0cfb48621
1 changed files with 3 additions and 1 deletions
|
@ -391,7 +391,9 @@ var PDFView = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
fallback: function pdfViewDownload() {
|
fallback: function pdfViewFallback() {
|
||||||
|
if (!PDFJS.isFirefoxExtension)
|
||||||
|
return;
|
||||||
// Only trigger the fallback once so we don't spam the user with messages
|
// Only trigger the fallback once so we don't spam the user with messages
|
||||||
// for one PDF.
|
// for one PDF.
|
||||||
if (this.fellback)
|
if (this.fellback)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue