Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Commit ea27fd4

Browse files
committed
Change capture syntax
1 parent c1c7293 commit ea27fd4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/helpers/dom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export const attachOnUnload = (cb) => {
22
if (window.addEventListener) {
33
// eslint-disable-next-line no-restricted-globals
44
const terminationEvent = 'onpagehide' in self ? 'pagehide' : 'unload';
5-
return window.addEventListener(terminationEvent, cb, { capture: true });
5+
return window.addEventListener(terminationEvent, cb, true);
66
}
77

88
if (window.attachEvent) {

0 commit comments

Comments
 (0)