landing-page-experiments
Advanced tools
Comparing version 1.0.13 to 1.0.14
@@ -94,5 +94,3 @@ "use strict"; | ||
if (currentUrl.pathname == newUrl.pathname) { | ||
if (__sbpd !== null) { | ||
document.body.style.display = __sbpd; | ||
} | ||
StatsigABHelper.resetBody(); | ||
return; | ||
@@ -115,8 +113,11 @@ } | ||
console.log(reason); | ||
StatsigABHelper.resetBody(); | ||
}) | ||
.finally(function () { | ||
if (__sbpd !== null) { | ||
document.body.style.display = __sbpd; | ||
} | ||
}); | ||
}, | ||
resetBody: function () { | ||
if (__sbpd !== null) { | ||
document.body.style.display = __sbpd; | ||
} | ||
} | ||
@@ -123,0 +124,0 @@ }; |
{ | ||
"name": "landing-page-experiments", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "Statsig helps run landing page experiments by redirecting users to two or more landing pages based on an ABn Test.", | ||
@@ -5,0 +5,0 @@ "jsdelivr": "dist/index.js", |
@@ -51,5 +51,3 @@ window["StatsigABHelper"] = window["StatsigABHelper"] || { | ||
if (currentUrl.pathname == newUrl.pathname) { | ||
if (__sbpd !== null) { | ||
document.body.style.display = __sbpd; | ||
} | ||
StatsigABHelper.resetBody(); | ||
return; | ||
@@ -71,8 +69,12 @@ } | ||
console.log(reason); | ||
StatsigABHelper.resetBody(); | ||
}) | ||
.finally(() => { | ||
if (__sbpd !== null) { | ||
document.body.style.display = __sbpd; | ||
} | ||
}); | ||
}, | ||
resetBody: function() { | ||
if (__sbpd !== null) { | ||
document.body.style.display = __sbpd; | ||
} | ||
} | ||
@@ -79,0 +81,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14009
354