Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-05-04 16:10:29 +07:00
co-authored by Copilot
parent 247535b292
commit 34816455cb
9 changed files with 216 additions and 1 deletions
+10
View File
@@ -112,5 +112,15 @@
}
</style> -->
@stack('scripts')
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/service-worker.js')
.then(reg => console.log('SW registered:', reg.scope))
.catch(err => console.error('SW failed:', err));
});
}
</script>
</body>
</html>