From 31d9b7ffab2c9d4eec41e13f43ce26daa16b3096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDiga=20Kokelj?= Date: Tue, 17 Oct 2023 12:47:33 +0200 Subject: [PATCH] fix stuck at revoke userID (#1605) --- tools/walletextension/api/staticOG/index.html | 4 ++-- tools/walletextension/api/staticOG/javascript.js | 9 ++------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/tools/walletextension/api/staticOG/index.html b/tools/walletextension/api/staticOG/index.html index cc506c17b1..6b783391bd 100644 --- a/tools/walletextension/api/staticOG/index.html +++ b/tools/walletextension/api/staticOG/index.html @@ -15,8 +15,8 @@

◠. Obscuro Gateway Demo! ◠.

- - + +

diff --git a/tools/walletextension/api/staticOG/javascript.js b/tools/walletextension/api/staticOG/javascript.js index 3dfb6adda1..baabe5541b 100644 --- a/tools/walletextension/api/staticOG/javascript.js +++ b/tools/walletextension/api/staticOG/javascript.js @@ -1,8 +1,6 @@ const eventClick = "click"; const eventDomLoaded = "DOMContentLoaded"; const idJoin = "join"; -const idAddAccount = "addAccount"; -const idAddAllAccounts = "addAllAccounts"; const idRevokeUserID = "revokeUserID"; const idStatus = "status"; const idAccountsTable = "accountsTable"; @@ -207,12 +205,9 @@ function checkIfMetamaskIsLoaded() { if (window.ethereum) { handleEthereum(); } else { - // TODO: Refactor and change the way we hide and display items on our webpage - document.getElementById(idJoin).style.display = "none"; - document.getElementById(idAddAccount).style.display = "none"; - document.getElementById(idAddAllAccounts).style.display = "none"; - document.getElementById(idRevokeUserID).style.display = "none"; const statusArea = document.getElementById(idStatus); + const table = document.getElementById("accountsTable"); + table.style.display = "none"; statusArea.innerText = 'Connecting to Metamask...'; window.addEventListener('ethereum#initialized', handleEthereum, { once: true,