Skip to content

Commit

Permalink
Keeping table behind spinner until loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Revelationxl committed Oct 20, 2023
1 parent 7f4aafd commit ece1ef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/walletextension/api/staticOG/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,6 @@ const initialize = async () => {
accountsTable.style.display = "block"
await populateAccountsTable(document, tableBody, userID)
}
beginBox.style.visibility = "visible";
spinner.style.visibility = "hidden";

// if accounts change we want to give user chance to add them to Obscuro
window.ethereum.on('accountsChanged', async function (accounts) {
Expand All @@ -389,6 +387,8 @@ const initialize = async () => {
});

await displayConnectedAndJoinedSuccessfully()
beginBox.style.visibility = "visible";
spinner.style.visibility = "hidden";
}
})

Expand Down

0 comments on commit ece1ef3

Please sign in to comment.