Skip to content

Commit

Permalink
Upgrade versions in FCM service worker (#382)
Browse files Browse the repository at this point in the history
* Upgrade versions in FCM service worker

* Add comment telling users to use latest
  • Loading branch information
dlarocque authored Oct 8, 2024
1 parent 2117c61 commit 56d7062
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions messaging/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ function initInSw() {
// 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/8.10.1/firebase-app.js');
importScripts('https://www.gstatic.com/firebasejs/8.10.1/firebase-messaging.js');
// Replace 10.13.2 with latest version of the Firebase JS SDK.
importScripts('https://www.gstatic.com/firebasejs/10.13.2/firebase-app-compat.js');
importScripts('https://www.gstatic.com/firebasejs/10.13.2/firebase-messaging-compat.js');

// Initialize the Firebase app in the service worker by passing in
// your app's Firebase config object.
Expand Down

0 comments on commit 56d7062

Please sign in to comment.