sfc-utils 1.3.8 → 1.3.11

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
@@ -12,7 +12,6 @@ const pollForAccount = function(i){
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
14
  const subButton = document.querySelector('#nav2-sub-box')
15
- console.log("found and swapped")
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
  }
package/icons/x.js ADDED
@@ -0,0 +1,5 @@
1
+ // NOTE: Remember to give your SVG fill="currentcolor" so that it can be styled in CSS
2
+
3
+ const xIcon = `<svg fill="currentcolor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M376.6 427.5c11.31 13.58 9.484 33.75-4.094 45.06c-5.984 4.984-13.25 7.422-20.47 7.422c-9.172 0-18.27-3.922-24.59-11.52L192 305.1l-135.4 162.5c-6.328 7.594-15.42 11.52-24.59 11.52c-7.219 0-14.48-2.438-20.47-7.422c-13.58-11.31-15.41-31.48-4.094-45.06l142.9-171.5L7.422 84.5C-3.891 70.92-2.063 50.75 11.52 39.44c13.56-11.34 33.73-9.516 45.06 4.094L192 206l135.4-162.5c11.3-13.58 31.48-15.42 45.06-4.094c13.58 11.31 15.41 31.48 4.094 45.06l-142.9 171.5L376.6 427.5z"/></svg>`
4
+
5
+ module.exports = { xIcon }