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:
parent
77135a2bc4
commit
a967f31950
@ -301,7 +301,7 @@ if (hasAttachEvent) {
|
|||||||
|
|
||||||
if ('onbeforeprint' in window) {
|
if ('onbeforeprint' in window) {
|
||||||
// Do not propagate before/afterprint events when they are not triggered
|
// 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) {
|
let stopPropagationIfNeeded = function(event) {
|
||||||
if (event.detail !== 'custom' && event.stopImmediatePropagation) {
|
if (event.detail !== 'custom' && event.stopImmediatePropagation) {
|
||||||
event.stopImmediatePropagation();
|
event.stopImmediatePropagation();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user