Browse Source

Use PDFView.error to avoid issues with alert.

Brendan Dahl 13 years ago
parent
commit
e0378530e2
  1. 2
      web/viewer.js

2
web/viewer.js

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

Loading…
Cancel
Save