From: Brendan Dahl Date: Thu, 12 Jul 2012 18:58:06 +0000 (-0700) Subject: Use PDFView.error to avoid issues with alert. X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e0378530e2243ee73cc9d80bba7bfce5f4182061;p=pdf.js.git Use PDFView.error to avoid issues with alert. --- diff --git a/web/viewer.js b/web/viewer.js index f757018..cbe20bb 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -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');