forked from trent_larson/crowd-funder-for-time-pwa
change back the check for adding a service worker because tests would get constant errors
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
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", {
|
||||
ready() {
|
||||
console.log(
|
||||
@@ -31,3 +31,4 @@ register("/sw_scripts-combined.js", {
|
||||
console.error("Error during service worker registration:", error);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user