web-manager 3.0.3 → 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +4 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -615,6 +615,9 @@ function Manager() {
|
|
615
615
|
This.properties.global.brand.name = configuration.global.brand.name;
|
616
616
|
This.properties.meta.environment = utilities.get(configuration, 'global.settings.debug.environment', This.properties.meta.environment);
|
617
617
|
|
618
|
+
// This.properties.global.cacheBreaker = This.properties.meta.environment === 'development'
|
619
|
+
// ? new Date().getTime()
|
620
|
+
// : This.properties.global.cacheBreaker;
|
618
621
|
// This.log('Config: ', options_user);
|
619
622
|
|
620
623
|
// parse query stringify
|
@@ -1162,7 +1165,7 @@ function Manager() {
|
|
1162
1165
|
if (!('serviceWorker' in navigator) || !(typeof firebase.messaging !== 'undefined')) {return}
|
1163
1166
|
|
1164
1167
|
// 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, app: This.properties.global.app, env: This.properties.meta.environment, v: This.properties.global.version, firebase: options_user.libraries.firebase_app.config})) )
|
1168
|
+
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, cb: This.properties.global.cacheBreaker, firebase: options_user.libraries.firebase_app.config})) )
|
1166
1169
|
.then(function (registration) {
|
1167
1170
|
// firebase.messaging().useServiceWorker(registration);
|
1168
1171
|
// console.log('----TEST registration', registration);
|
package/package.json
CHANGED