1// Give the service worker access to Firebase Messaging. 2// Note that you can only use Firebase Messaging here, other Firebase libraries 3// are not available in the service worker. 4importScripts("https://www.gstatic.com/firebasejs/8.9.1/firebase-app.js"); 5importScripts("https://www.gstatic.com/firebasejs/8.9.1/firebase-messaging.js"); 6 7// Initialize the Firebase app in the service worker by passing in the 8// messagingSenderId. 9 10firebase.initializeApp({ 11 apiKey: "AIzaSyCXFbWCZyoeHL8hxbojbexI-kRKPDcirj8", 12 authDomain: "bvks-ee662.firebaseapp.com", 13 databaseURL: "https://bvks-ee662.firebaseio.com", 14 projectId: "bvks-ee662", 15 storageBucket: "bvks-ee662.appspot.com", 16 messagingSenderId: "184985407900", 17 appId: "1:184985407900:web:c3632eef8c2104e727b859", 18 measurementId: "G-09LVQMCEL5", 19}); 20 21// Retrieve an instance of Firebase Messaging so that it can handle background 22// messages. 23const messaging = firebase.messaging();
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.