Browse Source

change back the check for adding a service worker because tests would get constant errors

pull/123/head
Trent Larson 3 months ago
parent
commit
089d4f0733
  1. 3
      src/registerServiceWorker.ts

3
src/registerServiceWorker.ts

@ -2,7 +2,7 @@
import { register } from "register-service-worker"; import { register } from "register-service-worker";
// This used to be only done when: import.meta.env.NODE_ENV === "production" if (import.meta.env.NODE_ENV === "production") {
register("/sw_scripts-combined.js", { register("/sw_scripts-combined.js", {
ready() { ready() {
console.log( console.log(
@ -31,3 +31,4 @@ register("/sw_scripts-combined.js", {
console.error("Error during service worker registration:", error); console.error("Error during service worker registration:", error);
}, },
}); });
}

Loading…
Cancel
Save