Idle.js icon indicating copy to clipboard operation
Idle.js copied to clipboard

Only attach 1 event listener for visibilitychange

Open JustinTulloss opened this issue 10 years ago • 1 comments

Some browsers support multiple different names for the visibilitychange event, this patch ensures that only one event will be listened to. It prefers the specced 'visibilitychange', but falls back to prefixed versions.

Also adds support for the 'moz' prefixed event.

JustinTulloss avatar Dec 31 '14 21:12 JustinTulloss

@JustinTulloss can you fix the conflict on this PR so it gets a chance to be reviewed and included ?

Cheers!!

isocroft avatar Feb 05 '18 19:02 isocroft