web-manager 3.2.35 → 3.2.37
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +14 -3
- package/lib/account.js +0 -1
- package/package.json +2 -2
package/index.js
CHANGED
@@ -37,14 +37,25 @@ var store;
|
|
37
37
|
/**
|
38
38
|
* MODULE
|
39
39
|
*/
|
40
|
-
function
|
40
|
+
function getIEVersion() {
|
41
|
+
// https://makandracards.com/makandra/53475-minimal-javascript-function-to-detect-version-of-internet-explorer-or-edge
|
41
42
|
var match = /\b(MSIE |Trident.*?rv:|Edge\/)(\d+)/.exec(navigator.userAgent);
|
42
43
|
if (match) {return parseInt(match[2])};
|
43
44
|
}
|
44
45
|
|
46
|
+
function isSupportedBrowser() {
|
47
|
+
var ieVersion = getIEVersion();
|
48
|
+
|
49
|
+
// IE 10 and below
|
50
|
+
if (ieVersion && ieVersion <= 11) {
|
51
|
+
return false;
|
52
|
+
}
|
53
|
+
|
54
|
+
return true;
|
55
|
+
}
|
56
|
+
|
45
57
|
function Manager() {
|
46
58
|
var self = this;
|
47
|
-
var iev = ieVersion();
|
48
59
|
|
49
60
|
/**
|
50
61
|
* OPTIONS
|
@@ -66,7 +77,7 @@ function Manager() {
|
|
66
77
|
// initSecondaryReady: false,
|
67
78
|
queryString: {},
|
68
79
|
// libErrors: [],
|
69
|
-
isSupportedBrowser: (
|
80
|
+
isSupportedBrowser: isSupportedBrowser(),
|
70
81
|
startTime: new Date(),
|
71
82
|
// auth: {
|
72
83
|
// status: undefined,
|
package/lib/account.js
CHANGED
@@ -494,7 +494,6 @@ Account.prototype._resolveAccount = function (firebaseUser, account, options) {
|
|
494
494
|
? '<i class="fas fa-exclamation-triangle mr-1"></i> Expires in ' + daysTillExpire + ' days '
|
495
495
|
: '');
|
496
496
|
|
497
|
-
|
498
497
|
// Update payment method UI
|
499
498
|
if (account.plan.status === 'suspended') {
|
500
499
|
self.dom.select('.master-alert-suspended').removeAttribute('hidden');
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "web-manager",
|
3
|
-
"version": "3.2.
|
3
|
+
"version": "3.2.37",
|
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
|
+
}
|