sfc-utils 1.4.87 → 1.4.88
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/components/layout/layouthelmet.mjs +1 -1
- package/package.json +1 -1
- package/personalize.js +17 -14
|
@@ -100,7 +100,7 @@ const LayoutHelmet = ({
|
|
|
100
100
|
"https://www.seattlepi.com/sites/seattlepi/apple-touch-icon-196x196.png";
|
|
101
101
|
} else if (MARKET_KEY === "SFC") {
|
|
102
102
|
favHref =
|
|
103
|
-
"https://www.sfchronicle.com/sites/premiumsfgate/
|
|
103
|
+
"https://www.sfchronicle.com/sites/premiumsfgate/favicon-32x32.png";
|
|
104
104
|
} else if (MARKET_KEY === "Houston") {
|
|
105
105
|
// NOTE: HC is cursed with a tiny favicon until product can fix the higher res one
|
|
106
106
|
favHref =
|
package/package.json
CHANGED
package/personalize.js
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
//
|
|
2
1
|
// NOTE: This will only work on a deployed URL!
|
|
3
2
|
const getProfileProperty = (property) => {
|
|
4
|
-
|
|
5
|
-
if (window
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
3
|
+
return new Promise((resolve, reject) => {
|
|
4
|
+
if (window) {
|
|
5
|
+
if (window.blueConicClient) {
|
|
6
|
+
const profile = window.blueConicClient.profile.getProfile();
|
|
7
|
+
const properties = [property];
|
|
8
|
+
profile.loadValues(properties, this, function () {
|
|
9
|
+
var value = profile.getValue(property);
|
|
10
|
+
// Return a valid result or null
|
|
11
|
+
value = value || null;
|
|
12
|
+
console.log("getProfileProperty VAL", value);
|
|
13
|
+
resolve(value);
|
|
14
|
+
});
|
|
15
|
+
} else {
|
|
16
|
+
resolve("Personalize: No BlueConic client found");
|
|
17
|
+
}
|
|
18
|
+
resolve("Personalize: No window found");
|
|
16
19
|
}
|
|
17
|
-
}
|
|
20
|
+
});
|
|
18
21
|
};
|
|
19
22
|
|
|
20
23
|
const setProfileProperty = (property, value) => {
|