Skip to content

Commit

Permalink
Update comment regarding beforeprint event support
Browse files Browse the repository at this point in the history
"beforeprint" / "afterprint" are standard features these days,
and Chrome added support for it in Chrome 63:
https://www.chromestatus.com/feature/5700595042222080
  • Loading branch information
Rob--W committed Feb 5, 2018
1 parent 77135a2 commit a967f31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/pdf_print_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ if (hasAttachEvent) {

if ('onbeforeprint' in window) {
// Do not propagate before/afterprint events when they are not triggered
// from within this polyfill. (FF/IE).
// from within this polyfill. (FF /IE / Chrome 63+).
let stopPropagationIfNeeded = function(event) {
if (event.detail !== 'custom' && event.stopImmediatePropagation) {
event.stopImmediatePropagation();
Expand Down

0 comments on commit a967f31

Please sign in to comment.