web-manager 3.2.6 → 3.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +5 -19
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -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
 
@@ -794,21 +791,10 @@ function Manager() {
794
791
  // self.log('Error', error.message);
795
792
  });
796
793
  } else {
797
- // @@@ REMOVED NOV 6, 2023
798
- // firebase.auth().signInWithRedirect(new firebase.auth.OAuthProvider(method))
799
- // .catch(function (e) {
800
- // _displayError(e);
801
- // })
802
-
803
- // @@@ ADDED NOV 6, 2023
804
- var authDomain = self.properties.options.libraries.firebase_app.config.authDomain;
805
- var newURL = new URL('https://' + authDomain + '/auth/handler');
806
-
807
- newURL.searchParams.set('provider', method);
808
- newURL.searchParams.set('destination', window.location.href);
809
-
810
- window.location.href = newURL.toString();
811
-
794
+ firebase.auth().signInWithRedirect(new firebase.auth.OAuthProvider(method))
795
+ .catch(function (e) {
796
+ _displayError(e);
797
+ })
812
798
  }
813
799
  },
814
800
  signUp: function(method, email, password, passwordConfirm) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.2.6",
3
+ "version": "3.2.8",
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": {