Skip to content

Commit

Permalink
remove displaying userID
Browse files Browse the repository at this point in the history
  • Loading branch information
zkokelj committed Sep 18, 2023
1 parent 8f5cb96 commit d31d525
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion tools/walletextension/api/staticOG/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ <h2>◠. Obscuro Gateway Demo! ◠.</h2>
<button class="btn btn-primary btn-lg btn-block mb-3" id="addAllAccounts" style="display: none">Add all accounts from Metamask</button>
<button class="btn btn-primary btn-lg btn-block mb-3" id="revokeUserID">Revoke UserID</button>

<p id="userID"></p>
<p id="status"></p>

<table id="accountsTable" border="1">
Expand Down
4 changes: 0 additions & 4 deletions tools/walletextension/api/staticOG/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ const initialize = async () => {
const addAllAccountsButton = document.getElementById(idAddAllAccounts);
const revokeUserIDButton = document.getElementById(idRevokeUserID);
const statusArea = document.getElementById(idStatus);
const userIDArea = document.getElementById(idUserID);

const accountsTable = document.getElementById('accountsTable')
const tableBody = document.getElementById('tableBody');
Expand All @@ -212,7 +211,6 @@ const initialize = async () => {
// check if userID exists and has a correct type and length (is valid) and display either
// option to join or to add a new account to existing user
if (isValidUserIDFormat(userID)) {
userIDArea.innerText = "Your userID is: " + userID
joinButton.style.display = "none"
addAccountButton.style.display = "block"
addAllAccountsButton.style.display = "block"
Expand Down Expand Up @@ -250,7 +248,6 @@ const initialize = async () => {
return
}
statusArea.innerText = "Successfully joined Obscuro Gateway";
userIDArea.innerText = "Your userID is: " + userID
// show users an option to add another account and revoke userID
addAccountButton.style.display = "block"
addAllAccountsButton.style.display = "block"
Expand Down Expand Up @@ -310,7 +307,6 @@ const initialize = async () => {
joinButton.style.display = "block";
revokeUserIDButton.style.display = "none";
addAllAccountsButton.style.display = "none";
userIDArea.innerText = "";
statusArea.innerText = "Revoking UserID successful. Please remove current network from Metamask."
addAccountButton.style.display = "none";
accountsTable.style.display = "none"
Expand Down

0 comments on commit d31d525

Please sign in to comment.