Skip to content

Commit

Permalink
Update firebase-messaging-sw.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aladinyo authored Apr 17, 2021
1 parent 8601d05 commit 17065a1
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions public/firebase-messaging-sw.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
importScripts('https://www.gstatic.com/firebasejs/8.0.1/firebase-app.js');
importScripts('https://www.gstatic.com/firebasejs/8.0.1/firebase-messaging.js');

firebase.initializeApp({
apiKey: "AIzaSyDKpDICrGpe4Afk1j0ffc8dlUG3jWKpgx0",
authDomain: "whatsappy-app.firebaseapp.com",
databaseURL: "https://whatsappy-app.firebaseio.com",
projectId: "whatsappy-app",
storageBucket: "whatsappy-app.appspot.com",
messagingSenderId: "468435242245",
appId: "1:468435242245:web:737f34ce5b750648aa7b6c",
measurementId: "G-QL39RMK58H"
})
firebase.initializeApp({}) /*use your own configuration*/

const messaging = firebase.messaging();

Expand All @@ -34,4 +25,4 @@ messaging.onBackgroundMessage(payload => {
self.addEventListener('notificationclick', event => {
event.notification.close();
self.clients.openWindow(href);
})
})

0 comments on commit 17065a1

Please sign in to comment.