Skip to content

Commit 750c8b6

Browse files
authored
Update account.html
1 parent 4ca9aed commit 750c8b6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/account.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,8 @@
185185
}
186186

187187
function devToken() {
188-
localStorage.removeItem('loggedIn');
189-
localStorage.removeItem('username');
190-
window.location.href = 'account.html';
188+
devTokens.style.color = "green";
189+
messageBox.textContent = "Generating Dev Token...";
191190
}
192191
</script>
193192
</head>
@@ -215,7 +214,7 @@ <h2>For You</h2>
215214
<h2>Developer Tokens</h2>
216215
<h3>Used for linking Scratch account to forums account</h3>
217216
<p id="devTokens" class="message" aria-live="polite"></p>
218-
<button onclick="logout()">Generate Dev Token</button>
217+
<button onclick="devToken()">Generate Dev Token</button>
219218
Coming Soon! Stay tuned
220219
</div>
221220
</div>
@@ -225,7 +224,7 @@ <h3>Used for linking Scratch account to forums account</h3>
225224
<div class="container">
226225
<h2>Welcome! Please log in to continue.</h2>
227226
<button onclick="registerScratchAuth()">Sign In With ScratchAuth (working)</button>
228-
<p id="scratchMessage" class="message" aria-live="polite"></p>
227+
<p id="scratchMessage" class="devTokens" aria-live="polite"></p>
229228
<p>Please note: You will be redirected to an external site (ScratchAuth) for authentication.</p>
230229
</div>
231230

0 commit comments

Comments
 (0)