sfc-utils 1.4.169 → 1.4.170

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 +13 -11
  2. package/package.json +1 -1
package/accountswap.js CHANGED
@@ -10,17 +10,19 @@ const pollForAccount = async function (i, isNav) {
10
10
  // Start the iterator
11
11
  if (!i) {
12
12
  i = 0;
13
- }
14
- // Add a click event to signin
15
- if (isNav) {
16
- const signinButton = document.querySelector(".hnp-signin");
17
- if (signinButton) {
18
- // Add event listener to signin button
19
- signinButton.onclick = function (e) {
20
- treg.realm.core.login();
21
- e.preventDefault();
22
- e.stopPropagation();
23
- };
13
+ // Add a click event to signin
14
+ if (isNav) {
15
+ const signinButton = document.querySelector(".hnp-signin");
16
+ if (signinButton) {
17
+ console.log("Found signin button");
18
+ // Add event listener to signin button
19
+ signinButton.onclick = function (e) {
20
+ console.log("Clicked signin button");
21
+ window.treg.realm.core.login();
22
+ e.preventDefault();
23
+ e.stopPropagation();
24
+ };
25
+ }
24
26
  }
25
27
  }
26
28
  // Safecheck for treg since it might not be global yet
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.169",
3
+ "version": "1.4.170",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",