One Hat Cyber Team
Your IP :
3.22.118.57
Server IP :
162.241.123.123
Server :
Linux sh016.hostgator.in 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
Server Software :
Apache
PHP Version :
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home1
/
saicsazq
/
snappy24.com
/
View File Name :
firebase-messaging-sw.js
importScripts("https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"); importScripts("https://www.gstatic.com/firebasejs/8.10.0/firebase-messaging.js"); firebase.initializeApp({ apiKey: "AIzaSyABBL7WeI67azOg86Hqw5-8HAvh0cj1Jxc", authDomain: "snappy24-a3579.firebaseapp.com", databaseURL: "https://snappy24-a3579-default-rtdb.firebaseio.com", projectId: "snappy24-a3579", storageBucket: "snappy24-a3579.appspot.com", messagingSenderId: "922672153913", appId: "1:922672153913:web:e2388091d6e5e30b0554e8" }); const messaging = firebase.messaging(); messaging.setBackgroundMessageHandler(function (payload) { const promiseChain = clients .matchAll({ type: "window", includeUncontrolled: true }) .then(windowClients => { for (let i = 0; i < windowClients.length; i++) { const windowClient = windowClients[i]; windowClient.postMessage(payload); } }) .then(() => { const title = payload.notification.title; const options = { body: payload.notification.score }; return registration.showNotification(title, options); }); return promiseChain; }); self.addEventListener('notificationclick', function (event) { console.log('notification received: ', event) });