Advertisement
ahmadandika

service worker

Feb 28th, 2022
1,845
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. importScripts('https://www.gstatic.com/firebasejs/8.2.3/firebase-app.js');
  2. importScripts('https://www.gstatic.com/firebasejs/8.2.3/firebase-messaging.js');
  3.  
  4.  
  5. // Your web app's Firebase configuration
  6. // const firebaseConfig = {
  7. //   apiKey: 'AIzaSyAGeTTepDNj3ex_Prn9znvv0wRWDv0T2hE',
  8. //   authDomain: 'trygb-9dd12.firebaseapp.com',
  9. //   projectId: 'trygb-9dd12',
  10. //   storageBucket: 'trygb-9dd12.appspot.com',
  11. //   messagingSenderId: '801367110806',
  12. //   appId: '1:801367110806:web:e7d9f39deef2bbcecd3eb7',
  13. // };
  14.  
  15. firebase.initializeApp(JSON.parse(process.env.REACT_APP_CONFIG_FIREBASE));
  16.  
  17. const messaging = firebase.messaging();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement