Skip to content
Snippets Groups Projects
Commit 2718b783 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Unregister all ServiceWorker in the App

parent 54a42dde
No related branches found
No related tags found
No related merge requests found
...@@ -287,6 +287,12 @@ ...@@ -287,6 +287,12 @@
} }
}); });
} }
}else if( 'serviceWorker' in navigator ){
navigator.serviceWorker.getRegistrations().then(function(registrations) {
for(let registration of registrations) {
registration.unregister()
}
});
} }
</script> </script>
<script src="{{ mix('/js/modules.js') }}" type="text/javascript" defer></script> <script src="{{ mix('/js/modules.js') }}" type="text/javascript" defer></script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment