차량 모니터 서비스워커 인증 캐시 제외

This commit is contained in:
seo
2026-07-12 10:04:46 +09:00
parent 8c14d55d4d
commit c2305b8ad3
3 changed files with 12 additions and 4 deletions
+3 -1
View File
@@ -3350,7 +3350,9 @@ $carMonitorSession = car_monitor_launcher_session();
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/car/sw.js', {scope: '/car/'}).catch(() => {});
navigator.serviceWorker.register('/car/sw.js', {scope: '/car/'})
.then(registration => registration.update())
.catch(() => {});
});
}
</script>