sfc-utils 1.3.74 → 1.3.76
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { getBlueconic } from "../../blueconic"
|
|
2
|
+
import { getBrands2 } from "../../brands2"
|
|
2
3
|
import { appCheck, blendHDN } from "../../index"
|
|
3
4
|
|
|
4
5
|
/** Used for resizing the WCM Image */
|
|
@@ -42,11 +43,16 @@ function appendLayoutScripts(isEmbedded, isAdRemoved) {
|
|
|
42
43
|
setTimeout(() => {
|
|
43
44
|
if (!isEmbedded && !isApp) {
|
|
44
45
|
let blueconicURL = getBlueconic(window.location.origin)
|
|
45
|
-
let script = document.createElement('script')
|
|
46
|
-
script.type = 'text/javascript'
|
|
47
|
-
script.defer = true
|
|
48
|
-
script.src = blueconicURL
|
|
49
|
-
document.body.appendChild(script)
|
|
46
|
+
let script = document.createElement('script')
|
|
47
|
+
script.type = 'text/javascript'
|
|
48
|
+
script.defer = true
|
|
49
|
+
script.src = blueconicURL
|
|
50
|
+
document.body.appendChild(script)
|
|
51
|
+
|
|
52
|
+
// Init sailthru
|
|
53
|
+
// if (window && window.Sailthru){
|
|
54
|
+
// window.Sailthru.init({ customerId: thisBrand.attributes.sailCustomer })
|
|
55
|
+
// }
|
|
50
56
|
}
|
|
51
57
|
}, 5000)
|
|
52
58
|
}
|
|
@@ -61,7 +67,7 @@ function formatHDN(isEmbedded, url_add, meta) {
|
|
|
61
67
|
const metaHDN = Object.assign({}, meta)
|
|
62
68
|
metaHDN.URL_ADD = url_add
|
|
63
69
|
// Add sailthru var
|
|
64
|
-
metaHDN.SAIL_CUST = thisBrand.attributes.sailCustomer
|
|
70
|
+
// metaHDN.SAIL_CUST = thisBrand.attributes.sailCustomer
|
|
65
71
|
// Make sure this is free on app
|
|
66
72
|
if (isApp) {
|
|
67
73
|
metaHDN.PAYWALL_SETTING = "free"
|