Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
guruakashsm authored Feb 8, 2024
1 parent 4c7a8b6 commit 208a8e0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1773,10 +1773,16 @@ <h3 class="h3 form-title">Contact Form</h3>

// Initialize Firebase
const app = initializeApp(firebaseConfig);
const messaging = getMessaging(app);
// const messaging = getMessaging(app);

//onst token = getToken(messaging, {vapidKey: "BCrJwTk22v4foZjvCmawjXoagm6wQLmZI8LXlFlXMz5sg9mmRgssPWbD7y4QfTLZE4zJ4y9h2lCac1pFhYFs6sk"});

const messaging = app.messaging();
messaging. getToken({vapidKey: "BCrJwTk22v4foZjvCmawjXoagm6wQLmZI8LXlFlXMz5sg9mmRgssPWbD7y4QfTLZE4zJ4y9h2lCac1pFhYFs6sk"});

.then((currentToken) => {
console.log("Current token:", currentToken);
}



Expand All @@ -1788,3 +1794,6 @@ <h3 class="h3 form-title">Contact Form</h3>
</script>
<script register-worker.js></script>
</html>
<script src="https://www.gstatic.com/firebasejs/9.6.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.6.0/firebase-messaging.js"></script>

0 comments on commit 208a8e0

Please sign in to comment.