서비스워커 등록 해제
This commit is contained in:
1 parent
ba9c78228a
commit
ae7081bd94
3 files changed
+19
-14
No files matched your search
@@ -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