commit-for-unregister-service-worker
This commit is contained in:
parent
6d3e777697
commit
d3fb5aad0b
@ -13,4 +13,13 @@
|
||||
<body>
|
||||
<app-root></app-root>
|
||||
</body>
|
||||
<script>
|
||||
navigator.serviceWorker.getRegistrations().then(function(registrations) {
|
||||
console.log('checking the service worker registertion...', registrations);
|
||||
for(let registration of registrations) {
|
||||
registration.unregister();
|
||||
}
|
||||
console.log('service workers unregistered successfully.');
|
||||
})
|
||||
</script>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user