sfc-utils 1.4.153 → 1.4.154

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.
@@ -85,7 +85,16 @@ function appendLayoutScripts(isEmbedded, isAdRemoved, marketKey, category) {
85
85
  ); // Set to "no" for production
86
86
  window.hnpbid.setTargeting("is_home", "no"); // Set to "yes" on the homepage
87
87
  window.hnpbid.setTargeting("post_id", `${fullURL}`);
88
- window.hnpbid.setTargeting("category", category || "news");
88
+ // Split category on , and loop through
89
+ if (!category) {
90
+ category = "news";
91
+ }
92
+ const categoryArray = category.split(",");
93
+ let i = 1;
94
+ categoryArray.forEach((cat) => {
95
+ window.hnpbid.setTargeting("section" + i, cat);
96
+ i++;
97
+ });
89
98
  // init
90
99
  window.hnpbid.layout();
91
100
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.153",
3
+ "version": "1.4.154",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",