sfc-utils 1.4.160 → 1.4.161
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.
|
@@ -16,7 +16,13 @@ function debounce(fn, ms) {
|
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
function appendLayoutScripts(
|
|
19
|
+
function appendLayoutScripts(
|
|
20
|
+
isEmbedded,
|
|
21
|
+
isAdRemoved,
|
|
22
|
+
marketKey,
|
|
23
|
+
category,
|
|
24
|
+
enableBC
|
|
25
|
+
) {
|
|
20
26
|
const isApp = appCheck();
|
|
21
27
|
|
|
22
28
|
// React Helmet is actually terrible and runs these scripts twice, so we are including them async ourselves
|
|
@@ -121,7 +127,7 @@ function appendLayoutScripts(isEmbedded, isAdRemoved, marketKey, category) {
|
|
|
121
127
|
|
|
122
128
|
// Wait a beat, then add to body so it doesn't mess with the head (which Helmet seems to want to manage)
|
|
123
129
|
setTimeout(() => {
|
|
124
|
-
if (!isEmbedded && !isApp) {
|
|
130
|
+
if (!isEmbedded && (!isApp || enableBC)) {
|
|
125
131
|
let blueconicURL = getBlueconic(window.location.origin);
|
|
126
132
|
let script = document.createElement("script");
|
|
127
133
|
script.type = "text/javascript";
|