Service Worker: Fix freezing on new version (follow-up)

This commit is contained in:
Alexander Zinchuk 2021-08-19 10:04:30 +03:00
parent b1f73375e9
commit bf51584f7f

View File

@ -13,7 +13,7 @@ type RequestStates = {
callback?: AnyToVoidFunction; callback?: AnyToVoidFunction;
}; };
const HEALTH_CHECK_TIMEOUT = 1000; // 1 sec const HEALTH_CHECK_TIMEOUT = 250;
const HEALTH_CHECK_MIN_DELAY = 5 * 1000; // 5 sec const HEALTH_CHECK_MIN_DELAY = 5 * 1000; // 5 sec
let worker: Worker; let worker: Worker;