Skip to content

Commit

Permalink
Avoid closure compiler suspicious code warning (roundcube#5584)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Jan 7, 2017
1 parent 3bb12e7 commit cb58d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ function rcube_webmail()
if (bw.mz && this.env.mimetype == 'application/pdf') {
n = 0; // there will be two onload events, first for the preload page
$(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 */}
});
}
Expand Down

0 comments on commit cb58d37

Please sign in to comment.