File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 185
185
}
186
186
187
187
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..." ;
191
190
}
192
191
</ script >
193
192
</ head >
@@ -215,7 +214,7 @@ <h2>For You</h2>
215
214
< h2 > Developer Tokens</ h2 >
216
215
< h3 > Used for linking Scratch account to forums account</ h3 >
217
216
< 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 >
219
218
Coming Soon! Stay tuned
220
219
</ div >
221
220
</ div >
@@ -225,7 +224,7 @@ <h3>Used for linking Scratch account to forums account</h3>
225
224
< div class ="container ">
226
225
< h2 > Welcome! Please log in to continue.</ h2 >
227
226
< 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 >
229
228
< p > Please note: You will be redirected to an external site (ScratchAuth) for authentication.</ p >
230
229
</ div >
231
230
You can’t perform that action at this time.
0 commit comments