PageSourceSearch

https://globisun-app-1.onrender.com/firebase-messaging-sw.js

js globisun-app-1.onrender.com collected 2026-10-03 11:40:34 UTC 1,134 bytes, 28 lines download raw bytes

1// Give Firebase Messaging access to the Firebase app
2importScripts('https://www.gstatic.com/firebasejs/9.22.1/firebase-app-compat.js');
3importScripts('https://www.gstatic.com/firebasejs/9.22.1/firebase-messaging-compat.js');
4
5// Initialize Firebase inside the service worker
6firebase.initializeApp({
7  apiKey: "AIzaSyDGawB5C6Wu_UTINvSKADEDePTkIv6ZtPg",
8  authDomain: "globisunpush.firebaseapp.com",
9  projectId: "globisunpush",
10  storageBucket: "globisunpush.firebasestorage.app",
11  messagingSenderId: "908323913325",
12  appId: "1:908323913325:web:3b969d138b31533e894964",
13  measurementId: "G-LDZWQP8CJJ"
14});
15
16// Retrieve an instance of Firebase Messaging
17const messaging = firebase.messaging();
18
19// Optional: handle background messages
20messaging.onBackgroundMessage(function(payload) {
21  console.log('[firebase-messaging-sw.js] Received background message ', payload);
22  const notificationTitle = payload.notification?.title || 'Notification';
23  const notificationOptions = {
24    body: payload.notification?.body || '',
25    icon: '/favicon.ico',
26  };
27  self.registration.showNotification(notificationTitle, notificationOptions);
28});

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.