pinafore/routes/_store/observers
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
..
autosuggestObservers.js refactor some stuff (#274) 2018-05-06 17:35:22 -07:00
instanceObservers.js remove get() with string from Svelte calls (#169) 2018-04-19 09:37:05 -07:00
navObservers.js add animation for navigation bar indicator (#257) 2018-05-02 21:32:43 -07:00
notificationObservers.js fix notifications in a background tab (#402) 2018-06-23 10:11:14 -07:00
observers.js fix notifications in a background tab (#402) 2018-06-23 10:11:14 -07:00
onlineObservers.js only show "you are offline" notification once (#137) 2018-04-15 16:00:16 -07:00
pageVisibilityObservers.js fix notifications in a background tab (#402) 2018-06-23 10:11:14 -07:00
timelineObservers.js remove get() with string from Svelte calls (#169) 2018-04-19 09:37:05 -07:00