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 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
You can’t perform that action at this time.
0 commit comments