Skip to content

Commit e037853

Browse files
committed
Use PDFView.error to avoid issues with alert.
1 parent d32906a commit e037853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/viewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ var PDFView = {
10581058
if (!this.supportsPrinting) {
10591059
var printMessage = mozL10n.get('printing_not_supported', null,
10601060
'Warning: Printing is not fully supported by this browser.');
1061-
alert(printMessage);
1061+
this.error(printMessage);
10621062
return;
10631063
}
10641064
var body = document.querySelector('body');

0 commit comments

Comments
 (0)