/* eslint-disable */ if (typeof importScripts === "function") { // Give the service worker access to Firebase Messaging. // Note that you can only use Firebase Messaging here. Other Firebase libraries // are not available in the service worker. importScripts("https://www.gstatic.com/firebasejs/9.8.4/firebase-app-compat.js"); importScripts("https://www.gstatic.com/firebasejs/9.8.4/firebase-messaging-compat.js"); if (firebase.messaging.isSupported()) { // Initialize the Firebase app in the service worker by passing in // your app's Firebase config object. // https://firebase.google.com/docs/web/setup#config-object firebase.initializeApp({ "apiKey": "AIzaSyDXJyfgCIr6c-d2M5UDHDc2zhYmiPT1C0c", "authDomain": "almabet-f5406.firebaseapp.com", "projectId": "almabet-f5406", "storageBucket": "almabet-f5406.appspot.com", "messagingSenderId": 899973664384, "appId": "1:899973664384:web:66b45a1dedbcef2dd52065", "measurementId": "G-1K1TH4HEQQ" }); // Retrieve an instance of Firebase Messaging so that it can handle background // messages. const messaging = firebase.messaging(); } }