PageSourceSearch

https://testingweb647-arag.hf.space/static/sw.js

js testingweb647-arag.hf.space collected 2026-10-03 17:26:29 UTC 859 bytes, 24 lines download raw bytes

1/* AuthorBot author admin — OS notification click handler (R-N-011). */
2self.addEventListener('install', () => self.skipWaiting());
3
4self.addEventListener('activate', (event) => {
5  event.waitUntil(clients.claim());
6});
7
8self.addEventListener('notificationclick', (event) => {
9  event.notification.close();
10  const data = event.notification.data || {};
11  const target = data.url || '/author?page=omni-inbox';
12  event.waitUntil(
13    clients.matchAll({ type: 'window', includeUncontrolled: true }).then((clientList) => {
14      for (const client of clientList) {
15        if (client.url.includes('/author') && 'focus' in client) {
16          client.postMessage({ type: 'ab-notif-navigate', url: target });
17          return client.focus();
18        }
19      }
20      if (clients.openWindow) return clients.openWindow(target);
21      return undefined;
22    })
23  );
24});

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.