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/7.14.6/firebase-app.js') 5importScripts('https://www.gstatic.com/firebasejs/7.14.6/firebase-messaging.js') 6 7// Initialize the Firebase app in the service worker by passing in 8// your app's Firebase config object. 9// https://firebase.google.com/docs/web/setup#config-object 10firebase.initializeApp({ 11 apiKey: 'AIzaSyDmyp6_hqkozGKWeIuWpH-ORIe9kPr3jKM', 12 authDomain: 'plumbing-world.firebaseapp.com', 13 databaseURL: 'https://plumbing-world.firebaseio.com', 14 projectId: 'plumbing-world', 15 storageBucket: 'plumbing-world.appspot.com', 16 messagingSenderId: '598089183755', 17 appId: '1:598089183755:web:826b5a38b4c60d545b4d0e', 18 measurementId: 'G-SN2VSRQGBN' 19}) 20 21// Retrieve an instance of Firebase Messaging so that it can handle background messages. 22const 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.