1 2importScripts('https://www.gstatic.com/firebasejs/10.12.2/firebase-app-compat.js'); 3importScripts('https://www.gstatic.com/firebasejs/10.12.2/firebase-messaging-compat.js'); 4 5firebase.initializeApp({"apiKey":"AIzaSyALLOn3ic3D6joEk7Ue0iXDh8sk-YyjJug","authDomain":"avaz-ef6d6.firebaseapp.com","projectId":"avaz-ef6d6","storageBucket":"avaz-ef6d6.firebasestorage.app","messagingSenderId":"294116578797","appId":"1:294116578797:web:cf7780e53a0912052583e4"}); 6 7const messaging = firebase.messaging(); 8 9messaging.onBackgroundMessage((payload) => { 10 const { title, body, icon } = payload.notification || {}; 11 const link = payload.fcmOptions?.link || payload.data?.link || '/'; 12 13 self.registration.showNotification(title || 'Dnevni avaz', { 14 body, 15 icon: icon || '/android-chrome-192x192.png', 16 data: { link }, 17 }); 18}); 19 20self.addEventListener('notificationclick', (event) => { 21 event.notification.close(); 22 const link = event.notification.data?.link || '/'; 23 event.waitUntil(clients.openWindow(link)); 24});
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.