1importScripts('https://www.gstatic.com/firebasejs/5.7.2/firebase-app.js'); 2importScripts('https://www.gstatic.com/firebasejs/5.7.2/firebase-messaging.js'); 3var firebaseConfig = { 4 apiKey: "AIzaSyCU4qczumtVNxE38CbAvcBHG7sAbE_LidY", 5 authDomain: "nettv-1609f.firebaseapp.com", 6 databaseURL: "https://nettv-1609f.firebaseio.com", 7 projectId: "nettv-1609f", 8 storageBucket: "nettv-1609f.appspot.com", 9 messagingSenderId: "579713148761", 10 appId: "1:579713148761:web:034476f70df2b718640e48", 11 measurementId: "G-NHW0EB9GTP" 12}; 13firebase.initializeApp(firebaseConfig); 14const messaging = firebase.messaging(); 15 16// messaging.setBackgroundMessageHandler(function(payload) { 17// const promiseChain = clients 18// .matchAll({ 19// type: "window", 20// includeUncontrolled: true 21// }) 22// .then(windowClients => { 23// for (let i = 0; i < windowClients.length; i++) { 24// const windowClient = windowClients[i]; 25// windowClient.postMessage(payload); 26// } 27// }) 28// .then(() => { 29// return registration.showNotification("my notification title"); 30// }); 31// return promiseChain; 32// }); 33 34 35// messaging.setBackgroundMessageHandler(function (payload) { 36// console.log('notification_message ', payload); 37// // Customize notification here 38// const notificationTitle = 'WebTV Notification'; 39// let body = payload && payload.data && payload.data.body ? payload && payload.data && payload.data.body : "" 40// // localStorage.setItem("ntv_ip", body) 41// const notificationOptions = { 42// body: body, 43// icon: '/icon.png' 44// }; 45// 46// return self.registration.showNotification(notificationTitle, 47// notificationOptions); 48// }); 49 50self.addEventListener('message', function (event) { 51 // console.log("SW Received Message: ", event); 52});
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.