PageSourceSearch

https://bit24.cash/firebase-messaging-sw.js

js bit24.cash collected 2026-10-07 17:47:10 UTC 669 bytes, 24 lines download raw bytes

1self.addEventListener('push', (event) => {
2    if (!(self.Notification && self.Notification.permission === 'granted')) {
3        return;
4    }
5
6    const data = event.data?.json() ?? {};
7    const title = data.notification.title || 'بیت ۲۴';
8
9    const obj = structuredClone(data.notification)
10    delete obj.title
11
12    event.waitUntil(
13        self.registration.showNotification(title, obj)
14    );
15});
16
17self.addEventListener('notificationclick', function(event) {
18    try {
19        const url = new URL(event.action);
20        event.waitUntil(clients.openWindow(url));
21    } catch (e) {
22        event.waitUntil(clients.openWindow('https://bit24.cash/'));
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.