web-manager 3.2.24 → 3.2.25
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +7 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1015,7 +1015,13 @@ function Manager() {
|
|
1015
1015
|
HELPERS
|
1016
1016
|
*/
|
1017
1017
|
function subscriptionManager(self, options_user) {
|
1018
|
-
if (
|
1018
|
+
if (
|
1019
|
+
!('serviceWorker' in navigator)
|
1020
|
+
|| (typeof firebase === 'undefined')
|
1021
|
+
|| (typeof firebase.messaging === 'undefined')
|
1022
|
+
) {
|
1023
|
+
return
|
1024
|
+
}
|
1019
1025
|
|
1020
1026
|
// service worker guide: https://developers.google.com/web/updates/2018/06/fresher-sw
|
1021
1027
|
navigator.serviceWorker.register(
|
package/package.json
CHANGED