Commit Graph

5 Commits

Author SHA1 Message Date
billybonks f28df6ecf3 lint: lint all js and sjon files with prettier 2024-02-07 19:46:51 -08:00
Ohad Lutzky 798d7663fd Dashboard: Auto-refresh even if focus is supported
* No change if unsupported
* If supported, still auto-refresh at the selected frequency (if any),
  but only if not hidden.

This is useful for always-on displays (e.g. a "baby clock"). Fixes #253
2021-07-19 19:52:19 -07:00
Christopher Charbonneau Wells a524259507 Replace Page Visibility API with focus event listener for dashboard refreshes.
This is a bit of a testing phase to see if the focus event listerner behaves any better than the Page Visibility API, particularly in mobile browsers.
2018-03-22 20:29:40 -07:00
Christopher Charbonneau Wells 60ac9a7f5d Add Settings model extending User. 2017-11-12 12:09:54 -05:00
Christopher Charbonneau Wells 22664ecc0f Reload the dashboard page every 60 seconds and on visibility state change. 2017-10-29 16:01:13 -04:00