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.
Files changed (2) hide show
  1. package/index.js +7 -1
  2. 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 (!('serviceWorker' in navigator) || !(typeof firebase.messaging !== 'undefined')) {return}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.2.24",
3
+ "version": "3.2.25",
4
4
  "description": "Easily access important variables such as the query string, current domain, and current page in a single object.",
5
5
  "main": "index.js",
6
6
  "scripts": {