PageSourceSearch

https://candr.app/firebase-messaging-sw.js

js candr.app collected 2026-10-04 01:45:13 UTC 1,058 bytes, 29 lines download raw bytes

1// eslint-disable-next-line no-undef
2importScripts('https://www.gstatic.com/firebasejs/8.8.0/firebase-app.js');
3// eslint-disable-next-line no-undef
4importScripts('https://www.gstatic.com/firebasejs/8.8.0/firebase-messaging.js');
5
6// Initialize the Firebase app in the service worker
7// "Default" Firebase configuration (prevents errors)
8const defaultConfig = {
9  apiKey: 'AIzaSyDwabLm1GUcMlmDqrGym3wQo5-QYuZF7J8',
10  authDomain: 'candr-c567a.firebaseapp.com',
11  projectId: 'candr-c567a',
12  storageBucket: 'candr-c567a.appspot.com',
13  messagingSenderId: '813193596305',
14  appId: '1:813193596305:web:9ccc47af0446b55936de30',
15  measurementId: 'G-VJ678RQSX7',
16};
17
18firebase.initializeApp(defaultConfig);
19
20// Retrieve firebase messaging
21const messaging = firebase.messaging();
22
23// messaging.onBackgroundMessage(async (payload) => {
24//   const notificationTitle = payload.notification?.title;
25//   const notificationOptions = {
26//     body: payload.notification?.body,
27//   };
28//   self.registration.showNotification(notificationTitle, notificationOptions);
29// });

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.