File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 114114
115115 document . getElementById ( 'authSection' ) . style . display = 'none' ;
116116 document . getElementById ( 'loggedInContent' ) . style . display = 'block' ;
117- document . getElementById ( 'welcomeMessage' ) . textContent = `Welcome to your account, ${ username } !` ;
117+ document . getElementById ( 'welcomeMessage' ) . textContent = `Welcome to your account, ${ usernameEnc } !` ;
118118
119119 const res = await fetch ( `https://scratchgems.onrender.com/api/data/${ username } ` ) ;
120120 if ( ! res . ok ) throw new Error ( 'Failed to fetch data' ) ;
185185 }
186186
187187 function devToken ( ) {
188- const usernameEnc = localStorage . getItem ( 'usernameEnc ' ) ;
188+ const usernameEnc = localStorage . getItem ( 'username ' ) ;
189189 const username = localStorage . getItem ( 'username' ) ;
190190 const joined = "Your dev token is:" + usernameEnc + " - Make sure to only share it with Coding Hut services and partners or else you can get hacked!" ;
191191 devTokens . style . color = "green" ;
You can’t perform that action at this time.
0 commit comments