sfc-utils 1.4.200 → 1.4.201

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.
@@ -23,7 +23,7 @@ function appendLayoutScripts(
23
23
  marketKey,
24
24
  category,
25
25
  enableBC,
26
- slug
26
+ slug,
27
27
  ) {
28
28
  const isApp = appCheck();
29
29
 
@@ -63,6 +63,10 @@ function appendLayoutScripts(
63
63
  const fullURL = window.location.href;
64
64
  const shortDomain = domain.replace("https://www.", "");
65
65
  const script = document.createElement("script");
66
+ // Dallas is a special flower
67
+ if (shortDomain === "dallasnews.com") {
68
+ shortDomain = "dallasmorningnews.com";
69
+ }
66
70
  // Try to get the htlbid URL to see if it's enabled
67
71
  script.type = "text/javascript";
68
72
  script.src = `https://htlbid.com/v3/${shortDomain}/hnpbid.js`;
@@ -82,7 +86,7 @@ function appendLayoutScripts(
82
86
  window.hnpbid.cmd.push(() => {
83
87
  window.hnpbid.setTargeting(
84
88
  "is_testing",
85
- currentEnv === "production" ? "no" : "yes"
89
+ currentEnv === "production" ? "no" : "yes",
86
90
  ); // Set to "no" for production
87
91
  window.hnpbid.setTargeting("is_home", "no"); // Set to "yes" on the homepage
88
92
  window.hnpbid.setTargeting("post_id", `${fullURL}`);
@@ -182,7 +186,7 @@ function trackEvent(
182
186
  eventType,
183
187
  elementName = null,
184
188
  elementContent = null,
185
- elementText = null
189
+ elementText = null,
186
190
  ) {
187
191
  // all of these variables are used regardless of if it's an embed
188
192
  const storySettings = getSettings();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.200",
3
+ "version": "1.4.201",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",