probably fixed blank page issue upon logout
This commit is contained in:
@@ -15,6 +15,8 @@ export async function checkUser(){
|
||||
for (let key of Object.keys(json)) user[key] = json[key];
|
||||
url = `${location.protocol}//${location.host.replace('5173','8080')}/api/time/started`;
|
||||
resp = await fetch(url,{credentials: 'include'});
|
||||
} else {
|
||||
user.name = null;
|
||||
}
|
||||
if (resp.ok){
|
||||
const track = await resp.json();
|
||||
|
||||
Reference in New Issue
Block a user