Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

remove serviceworker remover

AykutSarace741357d4085
diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx
index 0af01e43..c5ca6ff0 100644
--- a/src/pages/_app.tsx
+++ b/src/pages/_app.tsx
@@ -40,18 +40,18 @@ function JsonCrack({ Component, pageProps }: AppProps) {
}, [query.json, setJson]);
React.useEffect(() => {
- if (!window.matchMedia("(display-mode: standalone)").matches) {
- navigator.serviceWorker
- ?.getRegistrations()
- .then(function (registrations) {
- for (let registration of registrations) {
- registration.unregister();
- }
- })
- .catch(function (err) {
- console.error("Service Worker registration failed: ", err);
- });
- }
+ // if (!window.matchMedia("(display-mode: standalone)").matches) {
+ // navigator.serviceWorker
+ // ?.getRegistrations()
+ // .then(function (registrations) {
+ // for (let registration of registrations) {
+ // registration.unregister();
+ // }
+ // })
+ // .catch(function (err) {
+ // console.error("Service Worker registration failed: ", err);
+ // });
+ // }
setRendered(true);
}, []);