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.
@@ -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/apple-touch-icon-152x152.png";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.87",
3
+ "version": "1.4.88",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",
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
- 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
- return value;
13
- });
14
- } else {
15
- return "Personalize: No BlueConic client found";
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) => {