Skip to content

Commit ae71956

Browse files
committed
Remove serviceworker
I was getting "Unhandled Rejection (SecurityError): The operation is insecure." in firefox. See badges/shields#3901
1 parent 57d79c0 commit ae71956

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

frontend/src/index.tsx

-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import store from "./store";
66
import "./index.css";
77

88
//import App from "./app/App";
9-
import * as serviceWorker from "./serviceWorker";
109

1110
// From https://redux-toolkit.js.org/tutorials/advanced-tutorial
1211
const render = () => {
@@ -32,8 +31,3 @@ if (process.env.NODE_ENV === "development" && module.hot) {
3231
// Concurrent Mode
3332
// @ts-ignore
3433
//ReactDOM.createRoot(document.getElementById("root")).render(<App />);
35-
36-
// If you want your app to work offline and load faster, you can change
37-
// unregister() to register() below. Note this comes with some pitfalls.
38-
// Learn more about service workers: https://bit.ly/CRA-PWA
39-
serviceWorker.unregister();

0 commit comments

Comments
 (0)