/* kptv-2026-05-22: self-destruct service worker. * * Replaces the previous Workbox SW. Browsers visiting any admin2 URL will * fetch this file (browsers always re-check the SW), detect it's different * from the old SW, install + activate this one, which then: * 1. Wipes every cached entry (so the old bundles/index.html are dropped) * 2. Calls registration.unregister() so the SW won't intercept future visits * 3. Forces all open clients to reload so they pick up the fresh server copy * * Net effect: the admin2 admin panel is no longer a PWA -- every page load * fetches fresh from the network. Avoids endless cache invalidation pain. */ self.addEventListener('install', function (event) { self.skipWaiting(); }); self.addEventListener('activate', function (event) { event.waitUntil( (async function () { try { var keys = await caches.keys(); await Promise.all(keys.map(function (k) { return caches.delete(k); })); } catch (e) {} try { await self.registration.unregister(); } catch (e) {} try { var clients = await self.clients.matchAll({ type: 'window' }); clients.forEach(function (c) { try { c.navigate(c.url); } catch (e) {} }); } catch (e) {} })() ); }); /* No fetch handler: requests go straight to the network. */ x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586