Use PDFView.error to avoid issues with alert.

This commit is contained in:
Brendan Dahl 2012-07-12 11:58:06 -07:00
parent d32906adc4
commit e0378530e2

View 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');