1importScripts("https://www.gstatic.com/firebasejs/10.14.1/firebase-app-compat.js"); 2importScripts("https://www.gstatic.com/firebasejs/10.14.1/firebase-messaging-compat.js"); 3 4const firebaseConfig = { 5 apiKey: "AIzaSyDqIpW_SmFQasf_CJi-xO0GV_6Nb8AJLk4", 6 authDomain: "ic-rwd-notify-service-prod.firebaseapp.com", 7 projectId: "ic-rwd-notify-service-prod", 8 storageBucket: "ic-rwd-notify-service-prod.firebasestorage.app", 9 messagingSenderId: "291834329834", 10 appId: "1:291834329834:web:c1ca993d12985935d0f593", 11 measurementId: "G-90F9NJLZ35", 12}; 13 14const isDevLogEnabled = firebaseConfig.projectId.endsWith("-dev"); 15const fcmLog = (...args) => { 16 if (isDevLogEnabled) { 17 console.log(...args); 18 } 19}; 20 21firebase.initializeApp(firebaseConfig); 22 23const messaging = firebase.messaging(); 24 25self.addEventListener("install", () => { 26 self.skipWaiting(); 27}); 28 29self.addEventListener("activate", (event) => { 30 event.waitUntil(self.clients.claim()); 31}); 32 33messaging.onBackgroundMessage((payload) => { 34 fcmLog("[firebase-messaging-sw.js] background message:", payload); 35});
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.