feat(network.js): Aktualisiertes Logout, um bei erfolgreicher Logout-Anfrage auf die Startseite umzuleiten

This commit is contained in:
Developer 02
2025-02-11 16:44:06 +01:00
parent 5d95f2f221
commit 121f0568ad
2 changed files with 4 additions and 1 deletions

View File

@@ -202,5 +202,8 @@ async function logout() {
headers: {
'Content-Type': 'application/json'
}
}).then(res => {
if (res.ok)
window.location.href = "/";
});
}