Commit Graph

3 Commits

Author SHA1 Message Date
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
Nolan Lawson 18c3064801
fix favicon logic (#175) 2018-04-19 09:34:56 -07:00
Nolan Lawson 66801fbc96 refactor 2018-03-03 14:15:50 -08:00