mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-17 05:20:01 -04:00
Merge pull request #249 from MotorTruck1221/mental-breakdown
Mental breakdown (Fix Bare Clients 😭)
This commit is contained in:
commit
d3d4736bae
7 changed files with 334 additions and 334 deletions
|
@ -20,7 +20,7 @@ export function Home() {
|
||||||
const firstLoad = localStorage.getItem("firstLoad") || "true";
|
const firstLoad = localStorage.getItem("firstLoad") || "true";
|
||||||
console.log(firstLoad);
|
console.log(firstLoad);
|
||||||
//make sure service workers are updated
|
//make sure service workers are updated
|
||||||
updateServiceWorkers();
|
//updateServiceWorkers();
|
||||||
//make sure transport is set
|
//make sure transport is set
|
||||||
//setTransport();
|
//setTransport();
|
||||||
if (firstLoad == "true" && prod) {
|
if (firstLoad == "true" && prod) {
|
||||||
|
|
|
@ -24,7 +24,7 @@ export default function Routes() {
|
||||||
setTransport();
|
setTransport();
|
||||||
});
|
});
|
||||||
navigator.serviceWorker.register("/sw.js", {
|
navigator.serviceWorker.register("/sw.js", {
|
||||||
scope: "/~/"
|
scope: "/"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue