1 2importScripts('https://www.gstatic.com/firebasejs/9.23.0/firebase-app-compat.js'); 3importScripts('https://www.gstatic.com/firebasejs/9.23.0/firebase-messaging-compat.js'); 4var firebaseConfig = { 5 apiKey: 'AIzaSyDLqNAyNtrl8yRSgtNK3bkW2ni9fTv6YP8', 6 authDomain: 'miboomatw-fcm-d294f.firebaseapp.com', 7 projectId: 'miboomatw-fcm', 8 storageBucket: 'miboomatw-fcm-d294f.appspot.com', 9 messagingSenderId: '324671873452', 10 appId: '1:324671873452:web:ccd96f70783d5aaf' 11 12}; 13 firebase.initializeApp(firebaseConfig); 14const messaging = firebase.messaging(); 15self.addEventListener('activate', function(event){ 16 messaging.onBackgroundMessage(function(payload) { 17 console.log('[firebase-messaging-sw.js] Received background message ', payload); 18 var notificationTitle = payload.notification.title; 19 var notificationOptions = { 20 body: payload.notification.body, 21 image: payload.notification.icon, 22 click_action: payload.notification.click_action 23 }; 24 25 return self.registration.showNotification(notificationTitle, 26 notificationOptions); 27 }); 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.