sfc-utils 1.4.131 → 1.4.132

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.
Files changed (2) hide show
  1. package/accountswap.js +8 -5
  2. package/package.json +1 -1
package/accountswap.js CHANGED
@@ -29,12 +29,15 @@ const pollForAccount = async function (i, isNav) {
29
29
  return await pollForAccount(i + 1, isNav);
30
30
  }
31
31
  subButtonText.innerText = "Account";
32
+ subButton.setAttribute("href", accountURL);
32
33
  // Instead of having a true link, set click event to run treg.realm.iframeProfile.NavigateToIndex()
33
- subButton.onclick = function () {
34
- window.treg.realm.iframeProfile.NavigateToIndex();
35
- };
36
- // Remove the old href since we're relying on the method
37
- subButton.removeAttribute("href");
34
+ if (window.treg.realm.iframeProfile) {
35
+ subButton.onclick = function (e) {
36
+ window.treg.realm.iframeProfile.NavigateToIndex();
37
+ e.preventDefault();
38
+ e.stopPropagation();
39
+ };
40
+ }
38
41
  }
39
42
  }
40
43
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.131",
3
+ "version": "1.4.132",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",