mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-23 05:26:15 -04:00
Added sw
This commit is contained in:
parent
cdfe6a4978
commit
934670b2a7
11 changed files with 84 additions and 3 deletions
4
src/sw_loader.ts
Normal file
4
src/sw_loader.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
if ("serviceWorker" in navigator &&
|
||||
window.location.search.includes("isPWA=true")) {
|
||||
navigator.serviceWorker.register("sw-b71.js");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue