Skip to content

Commit 23ec90a

Browse files
committed
Upgrade versions in FCM service worker
1 parent 2117c61 commit 23ec90a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

messaging/service-worker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ function initInSw() {
1010
// Give the service worker access to Firebase Messaging.
1111
// Note that you can only use Firebase Messaging here. Other Firebase libraries
1212
// are not available in the service worker.
13-
importScripts('https://www.gstatic.com/firebasejs/8.10.1/firebase-app.js');
14-
importScripts('https://www.gstatic.com/firebasejs/8.10.1/firebase-messaging.js');
13+
importScripts('https://www.gstatic.com/firebasejs/10.13.2/firebase-app-compat.js');
14+
importScripts('https://www.gstatic.com/firebasejs/10.13.2/firebase-messaging-compat.js');
1515

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

0 commit comments

Comments
 (0)