Scott Nonnenberg
|
26884432a2
|
Update TypeScript, Prettier and typescript-eslint for new TypeScript 3.8 syntax
|
2020-11-23 14:45:44 -05:00 |
Evan Hahn
|
8bfaf598af
|
Add license headers across the project
|
2020-11-04 13:03:13 -06:00 |
Chris Svenningsen
|
8a2c17f65f
|
Apply new ESLint rules to legacy code
|
2020-09-09 17:34:57 -07:00 |
Scott Nonnenberg
|
43a44793c5
|
Remove jshint - move everything over to eslint
Also removed all hints of previous linters
|
2018-07-17 15:54:32 -07:00 |
Daniel Gasienica
|
95321e5d3e
|
Remove Vim mode lines
|
2018-04-30 16:53:34 -04:00 |
Daniel Gasienica
|
1dd87ad197
|
Format all source code using Prettier
|
2018-04-30 16:53:34 -04:00 |
Scott Nonnenberg
|
9c8fe1a9d8
|
Reschedule all timers on time travel, set interval back to 1000ms
FREEBIE
|
2017-09-14 16:53:53 -07:00 |
Scott Nonnenberg
|
bc437095f6
|
Calm time travel checks, don't continually reschedule key rotation
FREEBIE
|
2017-09-14 16:53:53 -07:00 |
lilia
|
fcff07df98
|
Remove some global refs to window.events
// FREEBIE
|
2017-04-12 20:43:16 -07:00 |
lilia
|
510a5cb7fe
|
Namespace global listeners to Whisper
|
2017-04-12 20:43:16 -07:00 |
lilia
|
25ee61d3cb
|
Fix timers after suspend/resume/pause
We use timers to decide when to query and delete expired messages or
when to perform signed key rotations.
Internally, timers are counters that get updated when the CPU ticks, so
if the CPU sleeps, the timer will stop counting, and start again after
it wakes up, ignoring the intervening passage of wall clock time.
To fix this, without having to query the database or other potentially
high overhead operations too often, use an interval to frequently check
the wall clock time. If time jumps forward, trigger a global event so
other listeners can update their possibly-inaccurate timers.
https://stackoverflow.com/questions/6346849/what-happens-to-settimeout-when-the-computer-goes-to-sleep
https://stackoverflow.com/questions/4079115/can-any-desktop-browsers-detect-when-the-computer-resumes-from-sleep
// FREEBIE
|
2017-03-01 14:36:40 -08:00 |