web-manager 3.2.36 → 3.2.38
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.
- package/index.js +4 -4
- package/lib/account.js +2 -0
- package/package.json +1 -1
package/index.js
CHANGED
@@ -37,14 +37,14 @@ var store;
|
|
37
37
|
/**
|
38
38
|
* MODULE
|
39
39
|
*/
|
40
|
-
function
|
40
|
+
function getIEVersion() {
|
41
41
|
// https://makandracards.com/makandra/53475-minimal-javascript-function-to-detect-version-of-internet-explorer-or-edge
|
42
42
|
var match = /\b(MSIE |Trident.*?rv:|Edge\/)(\d+)/.exec(navigator.userAgent);
|
43
43
|
if (match) {return parseInt(match[2])};
|
44
44
|
}
|
45
45
|
|
46
|
-
function
|
47
|
-
var ieVersion =
|
46
|
+
function isSupportedBrowser() {
|
47
|
+
var ieVersion = getIEVersion();
|
48
48
|
|
49
49
|
// IE 10 and below
|
50
50
|
if (ieVersion && ieVersion <= 11) {
|
@@ -77,7 +77,7 @@ function Manager() {
|
|
77
77
|
// initSecondaryReady: false,
|
78
78
|
queryString: {},
|
79
79
|
// libErrors: [],
|
80
|
-
isSupportedBrowser:
|
80
|
+
isSupportedBrowser: isSupportedBrowser(),
|
81
81
|
startTime: new Date(),
|
82
82
|
// auth: {
|
83
83
|
// status: undefined,
|
package/lib/account.js
CHANGED
@@ -236,6 +236,7 @@ Account.prototype._resolveAccount = function (firebaseUser, account, options) {
|
|
236
236
|
var timestampOld = '1970-01-01T00:00:00.000Z';
|
237
237
|
var timestampUNIXOld = 0;
|
238
238
|
|
239
|
+
// TODO: ADD THESE THINGS: USAGE RESOVLER ETC
|
239
240
|
console.log('++++++account', JSON.stringify(account, null, 2));
|
240
241
|
console.log('++++++options', JSON.stringify(options, null, 2));
|
241
242
|
|
@@ -398,6 +399,7 @@ Account.prototype._resolveAccount = function (firebaseUser, account, options) {
|
|
398
399
|
account.personal.location = account.personal.location || {};
|
399
400
|
account.personal.location.city = account.personal.location.city || '';
|
400
401
|
account.personal.location.country = account.personal.location.country || '';
|
402
|
+
account.personal.location.region = account.personal.location.region || '';
|
401
403
|
|
402
404
|
account.personal.name = account.personal.name || {};
|
403
405
|
account.personal.name.first = account.personal.name.first || '';
|
package/package.json
CHANGED