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.
- package/accountswap.js +13 -11
- 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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|