sfc-utils 1.4.126 → 1.4.127

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 +5 -1
  2. package/package.json +1 -1
package/accountswap.js CHANGED
@@ -23,8 +23,12 @@ 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
- subButton.setAttribute("href", accountURL);
27
26
  console.log("innertext", subButtonText.innerText);
27
+ if (!subButtonText.innerText) {
28
+ // If there's no innerText, keep waiting
29
+ return await pollForAccount(i + 1, isNav);
30
+ }
31
+ subButton.setAttribute("href", accountURL);
28
32
  subButtonText.innerText = "Account";
29
33
  console.log("innertext", subButtonText.innerText);
30
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.126",
3
+ "version": "1.4.127",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",