Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
bithalo committed Sep 19, 2024
1 parent f150a44 commit 8e71829
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3935,7 +3935,11 @@ <h6>${translateThis("Transaction Pending")}</h6>
if (!isConnected) {
return;
}
var myaccounts2 = await web3.eth.getAccounts();
var myaccounts2 = [];
try {
myaccounts2 = await web3.eth.getAccounts();
} catch {
}
if (myaccounts2.length == 0 && accountprivkey == "") {
document.getElementById("connectionstatus").innerHTML = isMobile ? '' : translateThis("Please unlock Metamask so it can connect.");
return;
Expand Down

0 comments on commit 8e71829

Please sign in to comment.