web-manager 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1162,7 +1162,7 @@ function Manager() {
|
|
1162
1162
|
if (!('serviceWorker' in navigator) || !(typeof firebase.messaging !== 'undefined')) {return}
|
1163
1163
|
|
1164
1164
|
// service worker guide: https://developers.google.com/web/updates/2018/06/fresher-sw
|
1165
|
-
navigator.serviceWorker.register('/' + (options_user.serviceWorker.path || 'master-service-worker.js') + '?config=' + encodeURIComponent(JSON.stringify({name: This.properties.global.brand.name, env: This.properties.meta.environment, v: This.properties.global.version, firebase: options_user.libraries.firebase_app.config})) )
|
1165
|
+
navigator.serviceWorker.register('/' + (options_user.serviceWorker.path || 'master-service-worker.js') + '?config=' + encodeURIComponent(JSON.stringify({name: This.properties.global.brand.name, app: This.properties.global.app, env: This.properties.meta.environment, v: This.properties.global.version, firebase: options_user.libraries.firebase_app.config})) )
|
1166
1166
|
.then(function (registration) {
|
1167
1167
|
// firebase.messaging().useServiceWorker(registration);
|
1168
1168
|
// console.log('----TEST registration', registration);
|
package/package.json
CHANGED