서비스워커 등록 해제
This commit is contained in:
@@ -4,8 +4,10 @@
|
||||
}
|
||||
|
||||
window.addEventListener('load', function () {
|
||||
navigator.serviceWorker.register('/sw.js?v=20260721_nocache1').then(function (registration) {
|
||||
if (registration && typeof registration.update === 'function') registration.update();
|
||||
navigator.serviceWorker.getRegistrations().then(function (registrations) {
|
||||
registrations.forEach(function (registration) {
|
||||
registration.unregister().catch(function () {});
|
||||
});
|
||||
}).catch(function () {});
|
||||
});
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user