Skip to content

Commit

Permalink
proper leo wallet detection
Browse files Browse the repository at this point in the history
  • Loading branch information
HarukaMa committed Mar 1, 2023
1 parent c3c6913 commit 90eb505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui/templates/transition.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
let wallet = null
if (window.LeoWallet !== undefined) {
wallet = new window.LeoWallet.LeoWalletAdapter({appName: "Haruka's Aleo Explorer"})
if (wallet) {
if (wallet && wallet.readyState !== "NotDetected") {
button.style.display = ""
}
}
Expand Down

0 comments on commit 90eb505

Please sign in to comment.