web-manager 3.2.35 → 3.2.36

Sign up to get free protection for your applications and to get access to all the features.
package/index.js CHANGED
@@ -38,13 +38,24 @@ var store;
38
38
  * MODULE
39
39
  */
40
40
  function ieVersion() {
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 = ieVersion();
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: (!iev || iev >= 11), // https://makandracards.com/makandra/53475-minimal-javascript-function-to-detect-version-of-internet-explorer-or-edge
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.35",
3
+ "version": "3.2.36",
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": {