]> git.parisson.com Git - pdf.js.git/commitdiff
Prevent fallback when not ff extension.
authorBrendan Dahl <brendan.dahl@gmail.com>
Fri, 25 May 2012 21:52:00 +0000 (14:52 -0700)
committerBrendan Dahl <brendan.dahl@gmail.com>
Fri, 25 May 2012 21:52:00 +0000 (14:52 -0700)
web/viewer.js

index d88e16e4e63bc2ef46f9e1047253b0a413398c70..2b906771954538032a6c8bc70d274bc1e1768fd5 100644 (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)