web-manager 3.1.48 → 3.1.50
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +1 -1
- package/lib/account.js +1 -3
- package/package.json +2 -2
package/index.js
CHANGED
@@ -694,7 +694,7 @@ function Manager() {
|
|
694
694
|
// console.log('HERE 5');
|
695
695
|
|
696
696
|
// handle firebase user
|
697
|
-
if (firebase.auth) {
|
697
|
+
if (typeof firebase !== 'undefined' && firebase.auth) {
|
698
698
|
firebase.auth().onAuthStateChanged(function(user) {
|
699
699
|
This.properties.page.status.authReady = true;
|
700
700
|
This.properties.auth.user = user || false;
|
package/lib/account.js
CHANGED
@@ -408,9 +408,7 @@ Account.prototype._resolveAccount = function (firebaseUser, account, options) {
|
|
408
408
|
referralURL.searchParams.set('aff', account.affiliate.code)
|
409
409
|
|
410
410
|
authCreatedEl.setInnerHTML(
|
411
|
-
new Date(
|
412
|
-
parseInt(self.utilities.get(firebaseUser, 'metadata.a', '0'))
|
413
|
-
)
|
411
|
+
new Date(+self.utilities.get(firebaseUser, 'metadata.createdAt', '0'))
|
414
412
|
.toLocaleString(undefined, {
|
415
413
|
weekday: 'long', year: 'numeric', month: 'long', day: 'numeric',
|
416
414
|
})
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "web-manager",
|
3
|
-
"version": "3.1.
|
3
|
+
"version": "3.1.50",
|
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": {
|
@@ -36,4 +36,4 @@
|
|
36
36
|
"firebase": "^9.23.0",
|
37
37
|
"lazysizes": "^5.3.2"
|
38
38
|
}
|
39
|
-
}
|
39
|
+
}
|