changed browserslist config, improved browser sleep detection

This commit is contained in:
or-else
2025-02-07 20:59:45 +03:00
parent 12a97cacc8
commit bc8f20977e
62 changed files with 705 additions and 792 deletions
+7
View File
@@ -132,3 +132,10 @@ export const CLICKABLE_URL_SCHEMES = ['http', 'https', 'ftp', 'ftps'];
// Size of the QR code in the app.
export const QRCODE_SIZE = 128;
// How much time has to pass to consider computer awoken from sleep (80 sec).
// Chrome throttles ticker events in inactive tabs to once per minute. This
// value ensures that these once-a-minute events do not trigger a reconnect.
export const WAKE_UP_TIMEOUT = 80000;
// Timer interval between checks if computer woke up from sleep (1 sec).
export const WAKE_UP_TICK = 1000;