Initial commit

This commit is contained in:
Ronald Huynen
2026-03-23 21:37:59 +01:00
commit 2547717edb
2193 changed files with 972171 additions and 0 deletions

15
public/sw.js Normal file
View File

@@ -0,0 +1,15 @@
// In host's sw.js
const CACHE_VERSION = 'v1'; // Change this to force service worker update
importScripts('/js/wirechat/sw.js');
// Example: Custom event listener in main SW
self.addEventListener('install', event => {
console.log('Main Service Worker Installed - ' + CACHE_VERSION);
self.skipWaiting();
});
self.addEventListener('activate', event => {
console.log('Main Service Worker Activated');
event.waitUntil(self.clients.claim());
});