Файловый менеджер - Редактировать - /home/clickysoft/public_html/securebeans.clickysoft.net/public/firebase-messaging-sw.js
Назад
importScripts('https://www.gstatic.com/firebasejs/7.8.1/firebase-app.js'); importScripts('https://www.gstatic.com/firebasejs/7.8.1/firebase-messaging.js'); importScripts('https://www.gstatic.com/firebasejs/7.8.1/firebase-database.js'); importScripts('https://www.gstatic.com/firebasejs/7.8.1/firebase-firestore.js'); importScripts('https://www.gstatic.com/firebasejs/7.8.1/firebase-functions.js'); {/* <script src="https://www.gstatic.com/firebasejs/7.8.1/firebase-functions.js"></script> */} // Initialize the Firebase app in the service worker by passing in the // messagingSenderId. const firebaseConfig = { apiKey: "AIzaSyCsJ4XCtbEJrVOhqZL7Bk4ASUDOjFDWdA8", authDomain: "securebeans-b456e.firebaseapp.com", projectId: "securebeans-b456e", storageBucket: "beans-b456e.appspot.com", messagingSenderId: "692757259213", appId: "1:692757259213:web:0391facf6cbc96d3461a84" }; const messaging = firebase.messaging(); messaging.setBackgroundMessageHandler(function(payload) { console.log('[firebase-messaging-sw.js] Received background message ', payload); // Customize notification here const {title, body} = payload.notification; const notificationOptions = { body, }; return self.registration.showNotification(title, notificationOptions); });
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка