web-manager 3.2.5 → 3.2.7

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 +13 -16
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -58,8 +58,8 @@ function Manager() {
58
58
  code: '',
59
59
  url: '',
60
60
  status: {
61
- ready: false,
62
61
  initilizing: false,
62
+ ready: false,
63
63
  authReady: false,
64
64
  },
65
65
  // initReady: false,
@@ -190,10 +190,7 @@ function Manager() {
190
190
  });
191
191
  setInterval(function () {
192
192
  refreshNewVersion(self);
193
- }, self.properties.meta.environment === 'development'
194
- ? 1000
195
- : (1000 * 60 * 60 * 24 * 7)
196
- );
193
+ }, 1000 * 60 * 60 * 24 * 7);
197
194
 
198
195
  }
199
196
 
@@ -737,8 +734,7 @@ function Manager() {
737
734
  ready: function (fn, options) {
738
735
  options = options || {};
739
736
  options.interval = options.interval || 100;
740
- // if ( (self.get('page.status.authReady', false) === false) ) {
741
- // Manager.log('--- authReady() REAL');
737
+
742
738
  if (!utilities.get(self, 'properties.page.status.authReady', false)) {
743
739
  setTimeout(function () {
744
740
  self.auth().ready(fn, options);
@@ -746,14 +742,15 @@ function Manager() {
746
742
  } else {
747
743
 
748
744
  // Set up listener for redirect (for provider login)
749
- if (!self._redirectResultSetup) {
750
- self._redirectResultSetup = true;
751
- firebase.auth()
752
- .getRedirectResult()
753
- .catch(function (error) {
754
- _displayError(error.message);
755
- });
756
- }
745
+ // @@@ DISABLED NOV 8, 2023
746
+ // if (!self._redirectResultSetup) {
747
+ // self._redirectResultSetup = true;
748
+ // firebase.auth()
749
+ // .getRedirectResult()
750
+ // .catch(function (error) {
751
+ // _displayError(error.message);
752
+ // });
753
+ // }
757
754
 
758
755
  // Performance
759
756
  self.performance().mark('manager_authReady');
@@ -1103,7 +1100,7 @@ function Manager() {
1103
1100
  console.error(e);
1104
1101
  });
1105
1102
 
1106
- // SW Ready
1103
+ // Service Worker Ready
1107
1104
  // navigator.serviceWorker.ready.then(function(registration) {
1108
1105
  // });
1109
1106
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.2.5",
3
+ "version": "3.2.7",
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": {