]> git.parisson.com Git - pdf.js.git/commitdiff
Use PDFView.error to avoid issues with alert.
authorBrendan Dahl <brendan.dahl@gmail.com>
Thu, 12 Jul 2012 18:58:06 +0000 (11:58 -0700)
committerBrendan Dahl <brendan.dahl@gmail.com>
Thu, 12 Jul 2012 18:58:06 +0000 (11:58 -0700)
web/viewer.js

index f75701816987cb5d826a88d5d85e1a4db19c5e82..cbe20bb667f07c5559aad2884234372f05f38959 100644 (file)
@@ -1058,7 +1058,7 @@ var PDFView = {
     if (!this.supportsPrinting) {
       var printMessage = mozL10n.get('printing_not_supported', null,
           'Warning: Printing is not fully supported by this browser.');
-      alert(printMessage);
+      this.error(printMessage);
       return;
     }
     var body = document.querySelector('body');