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

This commit is contained in:
seo committed 2026-07-12 10:04:46 +09:00
1 parent 8c14d55d4d
commit c2305b8ad3
3 files changed
+12 -4

No files matched your search

+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>