sfc-utils 1.4.163 → 1.4.164

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.
@@ -21,7 +21,8 @@ function appendLayoutScripts(
21
21
  isAdRemoved,
22
22
  marketKey,
23
23
  category,
24
- enableBC
24
+ enableBC,
25
+ slug
25
26
  ) {
26
27
  const isApp = appCheck();
27
28
 
@@ -95,6 +96,10 @@ function appendLayoutScripts(
95
96
  if (!category) {
96
97
  category = "news";
97
98
  }
99
+ // Set targeting slug if we have one
100
+ if (slug) {
101
+ window.hnpbid.setTargeting("page", slug);
102
+ }
98
103
  const categoryArray = category.split(",");
99
104
  let i = 1;
100
105
  categoryArray.forEach((cat) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.163",
3
+ "version": "1.4.164",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",