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

Prevent fallback when not ff extension.

This commit is contained in:
Brendan Dahl 2012-05-25 14:52:00 -07:00
parent b1bf3ae56a
commit c0cfb48621

View file

@ -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
// for one PDF.
if (this.fellback)