commit-for-unregister-service-worker

This commit is contained in:
blaze 2019-08-07 15:40:03 +05:30
parent 6d3e777697
commit d3fb5aad0b

View File

@ -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>