Update comment regarding beforeprint event support

"beforeprint" / "afterprint" are standard features these days,
and Chrome added support for it in Chrome 63:
https://www.chromestatus.com/feature/5700595042222080
This commit is contained in:
Rob Wu 2018-02-05 14:51:20 +01:00
parent 77135a2bc4
commit a967f31950

View File

@ -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();