mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-24 22:16:14 -04:00
Build 29039851
This commit is contained in:
parent
2fdb74a433
commit
1c4f3d1451
9 changed files with 13 additions and 14 deletions
|
@ -1,7 +1,9 @@
|
|||
import version from "../data/version.json";
|
||||
if (
|
||||
"serviceWorker" in navigator
|
||||
// && window.location.search.includes("isPWA=true")
|
||||
"serviceWorker" in navigator &&
|
||||
window.location.href.endsWith("/index.html?isPWA=true")
|
||||
) {
|
||||
// @ts-ignore
|
||||
navigator.serviceWorker.register(new URL("sw-b71.js", import.meta.url));
|
||||
const url = new URL("sw-b71.js", import.meta.url);
|
||||
navigator.serviceWorker.register(url);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue