서비스워커 등록 해제
This commit is contained in:
@@ -469,8 +469,8 @@ ksort($items, SORT_NATURAL);
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
window.addEventListener('load', () => {
|
||||
navigator.serviceWorker.register('sw.js?v=20260721_nocache1', { scope: './' })
|
||||
.then(registration => registration.update())
|
||||
navigator.serviceWorker.getRegistrations()
|
||||
.then(registrations => registrations.forEach(registration => registration.unregister()))
|
||||
.catch(() => undefined);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user