sfc-utils 1.4.104 → 1.4.106
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/helpers/utilfunctions.mjs +6 -1
- package/index.js +1 -1
- package/package.json +1 -1
|
@@ -20,10 +20,15 @@ function appendLayoutScripts(isEmbedded, isAdRemoved, marketKey) {
|
|
|
20
20
|
// React Helmet is actually terrible and runs these scripts twice, so we are including them async ourselves
|
|
21
21
|
// Run analytics and resizing scripts right away so we take care of that
|
|
22
22
|
if (!isEmbedded) {
|
|
23
|
+
// Add new md5 script
|
|
23
24
|
let script = document.createElement("script");
|
|
24
25
|
script.type = "text/javascript";
|
|
25
|
-
script.src = "https://
|
|
26
|
+
script.src = "https://projects.sfchronicle.com/shared/js/md5.js";
|
|
26
27
|
document.body.appendChild(script);
|
|
28
|
+
let script2 = document.createElement("script");
|
|
29
|
+
script2.type = "text/javascript";
|
|
30
|
+
script2.src = "https://nexus.ensighten.com/hearst/news/Bootstrap.js";
|
|
31
|
+
document.body.appendChild(script2);
|
|
27
32
|
} else {
|
|
28
33
|
let script = document.createElement("script");
|
|
29
34
|
script.type = "text/javascript";
|
package/index.js
CHANGED
|
@@ -98,7 +98,7 @@ let blendHDN = function (meta) {
|
|
|
98
98
|
HDN.dataLayer.paywall = {};
|
|
99
99
|
|
|
100
100
|
// HDN.dataLayer object for content and href data
|
|
101
|
-
HDN.dataLayer.content.title = TITLE;
|
|
101
|
+
HDN.dataLayer.content.title = meta.DISPLAY_TITLE || TITLE;
|
|
102
102
|
HDN.dataLayer.content.subtitle = "";
|
|
103
103
|
HDN.dataLayer.content.objectId = `${SUBFOLDER}${slash}${SLUG}/${URL_ADD}`;
|
|
104
104
|
HDN.dataLayer.content.objectType = "project";
|