PageSourceSearch

https://www.stage.in/sw.js

js stage.in collected 2026-10-01 14:06:40 UTC 633 bytes, 17 lines download raw bytes

1// Stage PWA Service Worker
2// Minimal implementation to enable PWA install prompt.
3// Chrome (89+) only requires a registered SW + valid manifest — no fetch handler needed.
4
5self.addEventListener("install", () => {
6  self.skipWaiting();
7});
8
9self.addEventListener("activate", () => {
10  // Intentionally no clients.claim() — new SW versions activate only after all
11  // tabs close, avoiding mid-session takeover that can cause duplicate events.
12});
13
14self.addEventListener("fetch", () => {
15  // Empty handler — required signal for Chrome Android WebAPK install prompt.
16  // No interception, so no duplicate requests/events.
17});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.