Pause when tab is hidden, using visibility change api

This commit is contained in:
Renan LE CARO 2025-03-15 10:34:01 +01:00
parent 1a56b5f1d1
commit 33d74e8c84
68 changed files with 7290 additions and 6933 deletions

View file

@ -1,5 +1,7 @@
if ("serviceWorker" in navigator &&
window.location.search.includes("isPWA=true")) {
// @ts-ignore
navigator.serviceWorker.register(new URL('sw-b71.js', import.meta.url));
}
if (
"serviceWorker" in navigator &&
window.location.search.includes("isPWA=true")
) {
// @ts-ignore
navigator.serviceWorker.register(new URL("sw-b71.js", import.meta.url));
}