Commit 8bd020a
Reload page on system resume to fix stale Messenger connection
After a system suspend/wake cycle, the long-poll/WebSocket connection to
messenger.com is silently broken. This adds a powerMonitor 'resume' listener
that waits for network connectivity via ensureOnline(), then reloads the page
to restore the connection without user intervention.
Fixes #103
Co-Authored-By: Paperclip <noreply@paperclip.ing>1 parent c3cbcf9 commit 8bd020a
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
430 | 431 | | |
431 | 432 | | |
432 | 433 | | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
433 | 443 | | |
434 | 444 | | |
435 | 445 | | |
| |||
0 commit comments