web-manager 3.1.51 → 3.1.52

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 CHANGED
@@ -1102,6 +1102,7 @@ function Manager() {
1102
1102
  var $el = document.getElementById('modal-exit-popup');
1103
1103
  var modal = new bootstrap.Modal($el);
1104
1104
  modal.show();
1105
+ $el.removeAttribute('hidden');
1105
1106
 
1106
1107
  var $title = $el.querySelector('.modal-title');
1107
1108
  var $message = $el.querySelector('.modal-body');
@@ -1112,7 +1113,6 @@ function Manager() {
1112
1113
  $message.innerHTML = config.message;
1113
1114
  $okButton.innerHTML = config.okButton.text;
1114
1115
  $okButton.setAttribute('href', config.okButton.link);
1115
-
1116
1116
  }
1117
1117
 
1118
1118
  /*
package/lib/account.js CHANGED
@@ -142,7 +142,7 @@ function handlePlanVisibility(planId) {
142
142
 
143
143
  // Initially hide all elements
144
144
  elements.forEach(function(element) {
145
- element.hidden = true;
145
+ element.setAttribute('hidden', true);
146
146
  });
147
147
 
148
148
  // Toggle visibility based on plan
@@ -159,7 +159,7 @@ function handlePlanVisibility(planId) {
159
159
  shouldBeVisible = (requiredPlans.includes(planId));
160
160
  }
161
161
 
162
- element.hidden = shouldBeVisible ? (visibility === 'hidden') : (visibility === 'visible');
162
+ element.setAttribute('hidden', shouldBeVisible ? (visibility === 'hidden') : (visibility === 'visible'));
163
163
  });
164
164
  }
165
165
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.1.51",
3
+ "version": "3.1.52",
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": {