probably fixed blank page issue upon logout

This commit is contained in:
2025-09-01 16:37:54 +02:00
parent 0792baff49
commit cc81b0909a
4 changed files with 19 additions and 9 deletions

View File

@@ -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();