lex 1 gadu atpakaļ
vecāks
revīzija
930c919a02
1 mainītis faili ar 16 papildinājumiem un 16 dzēšanām
  1. 16 16
      src/App.tsx

+ 16 - 16
src/App.tsx

@@ -14,22 +14,22 @@ export function unregister() {
       registration.unregister();
     });
 
-    navigator.serviceWorker
-      .getRegistrations()
-      .then(registrations => {
-        for (const registration of registrations) {
-          registration.unregister().then(boolean => {
-            if (boolean) {
-              console.log('Service Worker unregistered successfully');
-            } else {
-              console.log('Service Worker unregistration failed');
-            }
-          });
-        }
-      })
-      .catch(error => {
-        console.error('Error getting Service Worker registrations:', error);
-      });
+    // navigator.serviceWorker
+    //   .getRegistrations()
+    //   .then(registrations => {
+    //     for (const registration of registrations) {
+    //       registration.unregister().then(boolean => {
+    //         if (boolean) {
+    //           console.log('Service Worker unregistered successfully');
+    //         } else {
+    //           console.log('Service Worker unregistration failed');
+    //         }
+    //       });
+    //     }
+    //   })
+    //   .catch(error => {
+    //     console.error('Error getting Service Worker registrations:', error);
+    //   });
   } else {
     console.log('Service Workers are not supported in this browser');
   }