1importScripts( 2 'https://www.gstatic.com/firebasejs/9.2.0/firebase-app-compat.js', 3); 4importScripts( 5 'https://www.gstatic.com/firebasejs/9.2.0/firebase-messaging-compat.js', 6); 7 8firebase.initializeApp({ 9 apiKey: 'AIzaSyDheGPreK8EQG4scUbFrBZK8rOXW_QmFs4', 10 authDomain: 'carillon-dev.firebaseapp.com', 11 projectId: 'carillon-dev', 12 storageBucket: 'carillon-dev.appspot.com', 13 messagingSenderId: '50911812616', 14 appId: '1:50911812616:web:d8f4605e0200fc857905bd', 15 measurementId: 'G-CB45VCWF1R', 16}); 17// Necessary to receive background messages: 18const messaging = firebase.messaging(); 19 20messaging.onBackgroundMessage(function (payload) { 21 const notificationTitle = payload.data.title; 22 const notificationOptions = { 23 body: payload.data.content, 24 }; 25 26 self.addEventListener('notificationclick', function (event) { 27 // å ³éå½åçå¼¹çª 28 event.notification.close(); 29 // 卿°çªå£æå¼é¡µé¢ 30 event.waitUntil(clients.openWindow('https://' + payload.data.id)); 31 }); 32 if (payload.data.is_show == 'true') { 33 self.registration.showNotification(notificationTitle, notificationOptions); 34 } 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.