1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-02-12 17:30:52 +01:00
Nolan Lawson 23ccec45d0
fix notifications in a background tab (#402)
Part of the way to improving #390.

Before this fix, if you recieved a notification while Pinafore was in a background tab, nothing would happen, because most browsers (Edge, Firefox, Chrome) don't run rAF in background tabs. Furthermore, Chrome doesn't run rIC. In this PR we detect if we're in a background tab and then avoid rAF/rIC in that case.
2018-06-23 10:11:14 -07:00
..
2018-02-08 22:29:29 -08:00
2018-03-14 18:52:33 -07:00
2018-02-08 22:29:29 -08:00
2018-02-27 23:38:33 -08:00
2018-02-11 09:37:13 -08:00
2018-03-23 08:16:46 -07:00
2018-02-14 18:37:19 -08:00
2018-03-09 00:08:23 -08:00
2018-02-27 23:38:33 -08:00
2018-03-24 18:04:54 -07:00
2018-03-14 23:17:47 -07:00
2018-02-08 22:29:29 -08:00
2018-03-20 17:41:39 -07:00
2018-02-16 08:59:44 -08:00
2018-02-08 22:29:29 -08:00
2018-02-27 23:38:33 -08:00