sfc-utils 1.3.7 → 1.3.10

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 CHANGED
@@ -11,8 +11,7 @@ const pollForAccount = function(i){
11
11
  // Safecheck for treg since it might not be global yet
12
12
  if (window && window.treg && window.treg.identity && window.treg.identity.id){
13
13
  // We got a valid entitlement! Let's see if the button exists and swap our new one in
14
- const subButton = documment.querySelector('.sub-box')
15
- console.log("found and swapped")
14
+ const subButton = document.querySelector('#nav2-sub-box')
16
15
  if (subButton){
17
16
  subButton.setAttribute("href", accountURL)
18
17
  subButton.innerText = "Account"
@@ -22,7 +21,6 @@ const pollForAccount = function(i){
22
21
  // If we've waited 10 seconds and there's still no entitlement, assume we aren't getting one
23
22
  return false
24
23
  }
25
- console.log("not found, polling " + i)
26
24
  // Check again after 1 sec
27
25
  setTimeout(() => {pollForAccount(i+1)}, 1000)
28
26
  }