File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,9 @@ function initInSw() {
10
10
// Give the service worker access to Firebase Messaging.
11
11
// Note that you can only use Firebase Messaging here. Other Firebase libraries
12
12
// 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
+ // Replace 10.13.2 with latest version of the Firebase JS SDK.
14
+ importScripts ( 'https://www.gstatic.com/firebasejs/10.13.2/firebase-app-compat.js' ) ;
15
+ importScripts ( 'https://www.gstatic.com/firebasejs/10.13.2/firebase-messaging-compat.js' ) ;
15
16
16
17
// Initialize the Firebase app in the service worker by passing in
17
18
// your app's Firebase config object.
You can’t perform that action at this time.
0 commit comments