PageSourceSearch

https://fastlance.vn/firebase-messaging-sw.js

js fastlance.vn collected 2026-10-01 16:30:06 UTC 934 bytes, 16 lines download raw bytes

1// Scripts for firebase and firebase messaging
2importScripts('https://www.gstatic.com/firebasejs/8.2.0/firebase-app.js')
3importScripts('https://www.gstatic.com/firebasejs/8.2.0/firebase-messaging.js')
4
5// Initialize the Firebase app in the service worker by passing the generated config
6const firebaseConfig = {"apiKey":"AIzaSyA4V9nXViujrZ-obmL07heaPc_B2uQq-gE","authDomain":"fastwork-production-vn.firebaseapp.com","databaseURL":"https://fastwork-production-vn-default-rtdb.asia-southeast1.firebasedatabase.app","storageBucket":"fastwork-production-vn.appspot.com","projectId":"fastwork-production-vn","messagingSenderId":"719557904043","appId":"1:719557904043:web:42e93f668e11267e8259ee"}
7
8firebase.initializeApp(firebaseConfig)
9
10// Retrieve firebase messaging
11const messaging = firebase.messaging()
12
13messaging.onBackgroundMessage(function (payload) {
14	// Customize notification here
15	console.log('onBackgroundMessage', payload)
16})

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.