Merge pull request #249 from MotorTruck1221/mental-breakdown

Mental breakdown (Fix Bare Clients 😭)
This commit is contained in:
rift 2024-04-17 14:42:54 -05:00 committed by GitHub
commit d3d4736bae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 334 additions and 334 deletions

View file

@ -20,7 +20,7 @@ export function Home() {
const firstLoad = localStorage.getItem("firstLoad") || "true";
console.log(firstLoad);
//make sure service workers are updated
updateServiceWorkers();
//updateServiceWorkers();
//make sure transport is set
//setTransport();
if (firstLoad == "true" && prod) {

View file

@ -24,7 +24,7 @@ export default function Routes() {
setTransport();
});
navigator.serviceWorker.register("/sw.js", {
scope: "/~/"
scope: "/"
});
}
return (