landing-page-experiments
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -94,2 +94,5 @@ "use strict"; | ||
if (currentUrl.pathname == newUrl.pathname) { | ||
if (__sbpd !== null) { | ||
document.body.style.display = __sbpd; | ||
} | ||
return; | ||
@@ -112,6 +115,16 @@ } | ||
console.log(reason); | ||
}) | ||
.finally(function () { | ||
if (__sbpd !== null) { | ||
document.body.style.display = __sbpd; | ||
} | ||
}); | ||
} | ||
}; | ||
var __sbpd = null; | ||
if (document.currentScript && document.currentScript.src) { | ||
window.addEventListener('DOMContentLoaded', function () { | ||
__sbpd = document.body.style.display; | ||
document.body.style.display = 'none'; | ||
}); | ||
var url = new URL(document.currentScript.src); | ||
@@ -118,0 +131,0 @@ var apiKey = url.searchParams.get('apikey'); |
{ | ||
"name": "landing-page-experiments", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"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,2 +51,5 @@ window["StatsigABHelper"] = window["StatsigABHelper"] || { | ||
if (currentUrl.pathname == newUrl.pathname) { | ||
if (__sbpd !== null) { | ||
document.body.style.display = __sbpd; | ||
} | ||
return; | ||
@@ -68,7 +71,17 @@ } | ||
console.log(reason); | ||
}); | ||
}) | ||
.finally(() => { | ||
if (__sbpd !== null) { | ||
document.body.style.display = __sbpd; | ||
} | ||
}); | ||
} | ||
} | ||
var __sbpd = null; | ||
if (document.currentScript && document.currentScript.src) { | ||
window.addEventListener('DOMContentLoaded', () => { | ||
__sbpd = document.body.style.display; | ||
document.body.style.display = 'none'; | ||
}); | ||
const url = new URL(document.currentScript.src); | ||
@@ -75,0 +88,0 @@ const apiKey = url.searchParams.get('apikey'); |
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
13997
352