mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-25 06:26:16 -04:00
Pause when tab is hidden, using visibility change api
This commit is contained in:
parent
1a56b5f1d1
commit
33d74e8c84
68 changed files with 7290 additions and 6933 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue