Avoid closure compiler suspicious code warning (#5584)

pull/5585/head
Aleksander Machniak 8 years ago
parent 3bb12e75f7
commit cb58d37bbc

@ -361,7 +361,7 @@ function rcube_webmail()
if (bw.mz && this.env.mimetype == 'application/pdf') { if (bw.mz && this.env.mimetype == 'application/pdf') {
n = 0; // there will be two onload events, first for the preload page n = 0; // there will be two onload events, first for the preload page
$(this.gui_objects.messagepartframe).on('load', function() { $(this.gui_objects.messagepartframe).on('load', function() {
if (n++) try { this.contentWindow.document; ref.enable_command('print', true); } if (n++) try { if (this.contentWindow.document) ref.enable_command('print', true); }
catch (e) {/* ignore */} catch (e) {/* ignore */}
}); });
} }

Loading…
Cancel
Save