sfc-utils 1.4.128 → 1.4.130
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/accountswap.js +5 -3
- package/index.js +1 -1
- package/package.json +1 -1
package/accountswap.js
CHANGED
|
@@ -23,15 +23,17 @@ const pollForAccount = async function (i, isNav) {
|
|
|
23
23
|
const subButton = document.querySelector("#nav2-sub-box");
|
|
24
24
|
const subButtonText = document.querySelector("#nav2-sub-box div");
|
|
25
25
|
if (subButton && subButtonText) {
|
|
26
|
-
console.log("innertext", subButtonText.innerText);
|
|
27
26
|
if (!subButtonText.innerText) {
|
|
28
27
|
// If there's no innerText, keep waiting
|
|
29
28
|
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
30
29
|
return await pollForAccount(i + 1, isNav);
|
|
31
30
|
}
|
|
32
|
-
subButton.setAttribute("href", accountURL);
|
|
33
31
|
subButtonText.innerText = "Account";
|
|
34
|
-
|
|
32
|
+
// subButton.setAttribute("href", accountURL);
|
|
33
|
+
// Instead of having a true link, set click event to run treg.realm.iframeProfile.NavigateToIndex()
|
|
34
|
+
subButton.onclick = function () {
|
|
35
|
+
window.treg.realm.iframeProfile.NavigateToIndex();
|
|
36
|
+
};
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
return true;
|
package/index.js
CHANGED
|
@@ -99,7 +99,7 @@ let blendHDN = function (meta) {
|
|
|
99
99
|
|
|
100
100
|
// HDN.dataLayer object for content and href data
|
|
101
101
|
HDN.dataLayer.content.title = meta.DISPLAY_TITLE || TITLE;
|
|
102
|
-
HDN.dataLayer.content.subtitle = "";
|
|
102
|
+
HDN.dataLayer.content.subtitle = meta.PROJECT.DECK || "";
|
|
103
103
|
HDN.dataLayer.content.objectId = `${SUBFOLDER}${slash}${SLUG}/${URL_ADD}`;
|
|
104
104
|
HDN.dataLayer.content.objectType = "project";
|
|
105
105
|
|