차량 모니터 서비스워커 해제
This commit is contained in:
+2
-2
@@ -3350,8 +3350,8 @@ $carMonitorSession = car_monitor_launcher_session();
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
window.addEventListener('load', () => {
|
||||
navigator.serviceWorker.register('/car/sw.js?v=20260721_nocache1', {scope: '/car/'})
|
||||
.then(registration => registration.update())
|
||||
navigator.serviceWorker.getRegistrations()
|
||||
.then(registrations => registrations.forEach(registration => registration.unregister()))
|
||||
.catch(() => {});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user