pinafore/routes
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
..
_actions fix notifications in a background tab (#402) 2018-06-23 10:11:14 -07:00
_api add more fine-grained request timeouts (#387) 2018-06-13 07:38:36 -07:00
_components fix svelte warning for empty block (#401) 2018-06-23 09:51:47 -07:00
_database add ability to mute conversation (#291) 2018-05-12 22:49:01 -07:00
_pages upgrade to svelte 2.0 (#251) 2018-05-01 17:05:36 -07:00
_static add toot-cafe theme (#108) 2018-04-14 09:43:30 -07:00
_store fix notifications in a background tab (#402) 2018-06-23 10:11:14 -07:00
_utils fix notifications in a background tab (#402) 2018-06-23 10:11:14 -07:00
accounts upgrade to svelte 2.0 (#251) 2018-05-01 17:05:36 -07:00
community upgrade to svelte 2.0 (#251) 2018-05-01 17:05:36 -07:00
lists fix nav bar for pinned lists (#263) 2018-05-03 21:24:10 -07:00
settings tests: quicker login, tweak test setup (#372) 2018-06-08 09:00:20 -07:00
statuses/[statusId] upgrade to svelte 2.0 (#251) 2018-05-01 17:05:36 -07:00
tags upgrade to svelte 2.0 (#251) 2018-05-01 17:05:36 -07:00
blocked.html upgrade to svelte 2.0 (#251) 2018-05-01 17:05:36 -07:00
favorites.html upgrade to svelte 2.0 (#251) 2018-05-01 17:05:36 -07:00
federated.html upgrade to svelte 2.0 (#251) 2018-05-01 17:05:36 -07:00
index.html upgrade to svelte 2.0 (#251) 2018-05-01 17:05:36 -07:00
local.html upgrade to svelte 2.0 (#251) 2018-05-01 17:05:36 -07:00
muted.html upgrade to svelte 2.0 (#251) 2018-05-01 17:05:36 -07:00
notifications.html upgrade to svelte 2.0 (#251) 2018-05-01 17:05:36 -07:00
pinned.html upgrade to svelte 2.0 (#251) 2018-05-01 17:05:36 -07:00
requests.html upgrade to svelte 2.0 (#251) 2018-05-01 17:05:36 -07:00
search.html upgrade to svelte 2.0 (#251) 2018-05-01 17:05:36 -07:00