web/assets/js/pwa/unregister.js

13 lines
254 B
JavaScript
Raw Normal View History

---
layout: compress
permalink: '/unregister.js'
---
if ('serviceWorker' in navigator) {
2022-10-25 14:26:44 +03:00
navigator.serviceWorker.getRegistrations().then((registrations) => {
for (let reg of registrations) {
reg.unregister();
}
});
}