File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 124
124
125
125
function checkAuth ( ) {
126
126
const authSuccess = new URLSearchParams ( window . location . search ) . get ( 'success' ) ;
127
- const username = new URLSearchParams ( window . location . search ) . get ( 'username' ) ;
127
+ const username = new URLSearchParams ( window . location . search ) . get ( 'username' ) ?. trim ( ) . toLowerCase ( ) ;
128
128
129
129
if ( username ) {
130
130
const decodedUsername = decodeUsername ( username ) ; // Decode the username using atob
170
170
}
171
171
172
172
async function strikeinfo ( ) {
173
- // Retrieve the 'username' parameter from the URL
174
- const urlParams = new URLSearchParams ( window . location . search ) ;
175
- const encodedUsername = urlParams . get ( 'username' ) ;
176
- const username = decodeUsername ( encodedUsername ) ; // Decode the username using atob
177
-
178
173
window . location . href = `https://scratch-coding-hut.netlify.app/Strikes/my-strikes?username=${ username } ` ;
179
174
}
180
175
</ script >
You can’t perform that action at this time.
0 commit comments