* @param {Document} doc * @return {?string}
(doc)
| 73 | * @return {?string} |
| 74 | */ |
| 75 | function getVisibilityChangeEvent(doc) { |
| 76 | const hiddenProp = getVendorJsPropertyName(doc, 'hidden', true); |
| 77 | const vendorStop = hiddenProp.indexOf('Hidden'); |
| 78 | return vendorStop != -1 |
| 79 | ? hiddenProp.substring(0, vendorStop) + 'Visibilitychange' |
| 80 | : 'visibilitychange'; |
| 81 | } |
no test coverage detected