web-manager 3.2.1 → 3.2.3

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
@@ -430,7 +430,7 @@ function Manager() {
430
430
  message: 'Get 15% off your purchase of our <strong>Premium plans</strong>. <br><br> Get access to all features and unlimited usage.',
431
431
  okButton: {
432
432
  text: 'Claim 15% Discount',
433
- link: '/pricing?utm_source=exitpopup&utm_medium=popup&utm_campaign={pathname}',
433
+ link: '/pricing?utm_source=exit-popup&utm_medium=popup&utm_campaign={pathname}',
434
434
  },
435
435
  },
436
436
  },
package/lib/account.js CHANGED
@@ -160,12 +160,20 @@ function handlePlanVisibility(planId) {
160
160
 
161
161
  // Special case for '$paid'
162
162
  if (requiredPlans.includes('$paid')) {
163
- shouldBeVisible = (planId !== 'basic');
163
+ shouldBeVisible = planId !== 'basic';
164
164
  } else {
165
- shouldBeVisible = (requiredPlans.includes(planId));
165
+ shouldBeVisible = requiredPlans.includes(planId);
166
166
  }
167
167
 
168
- element.setAttribute('hidden', shouldBeVisible ? (visibility === 'hidden') : (visibility === 'visible'));
168
+ var shouldHide = shouldBeVisible
169
+ ? visibility === 'hidden'
170
+ : visibility === 'visible';
171
+
172
+ if (shouldHide) {
173
+ element.setAttribute('hidden', true);
174
+ } else {
175
+ element.removeAttribute('hidden');
176
+ }
169
177
  });
170
178
  }
171
179
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.2.1",
3
+ "version": "3.2.3",
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": {