PageSourceSearch

https://tied-up.vercel.app/firebase-messaging-sw.js

js tied-up.vercel.app collected 2026-10-03 07:52:53 UTC 1,016 bytes, 33 lines download raw bytes

1// public/firebase-messaging-sw.js
2
3importScripts("https://www.gstatic.com/firebasejs/9.23.0/firebase-app-compat.js");
4importScripts("https://www.gstatic.com/firebasejs/9.23.0/firebase-messaging-compat.js");
5
6const firebaseConfig = {
7  apiKey: "AIzaSyBWIcM6QtTEnOdBgHIqOO8IW18l-723AIY",
8  authDomain: "tied-up-sreyas.firebaseapp.com",
9  projectId: "tied-up-sreyas",
10  storageBucket: "tied-up-sreyas.firebasestorage.app",
11  messagingSenderId: "100139794828",
12  appId: "1:100139794828:web:3b999d9f4a5e7ba6f9d6a9",
13  measurementId: "G-EVN8S3R176"
14};
15
16firebase.initializeApp(firebaseConfig);
17
18const messaging = firebase.messaging();
19
20messaging.onBackgroundMessage((payload) => {
21  console.log(
22    "[firebase-messaging-sw.js] Received background message ",
23    payload
24  );
25
26  const notificationTitle = payload.notification.title;
27  const notificationOptions = {
28    body: payload.notification.body,
29    icon: "/icon-192x192.png", 
30  };
31
32  self.registration.showNotification(notificationTitle, notificationOptions);
33});

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.