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 +1 -1
- package/lib/account.js +11 -3
- package/package.json +1 -1
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=
|
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 =
|
163
|
+
shouldBeVisible = planId !== 'basic';
|
164
164
|
} else {
|
165
|
-
shouldBeVisible =
|
165
|
+
shouldBeVisible = requiredPlans.includes(planId);
|
166
166
|
}
|
167
167
|
|
168
|
-
|
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