fix relative url bug

This commit is contained in:
IrosTheBeggar 2021-10-04 16:22:47 -04:00
parent 4cf737715c
commit 79fa20f2d8

View File

@ -31,14 +31,14 @@ const API = (() => {
headers: { 'x-access-token': module.token() }
});
} catch (err) {
window.location.replace(`/login?redirect=${encodeURIComponent(window.location.pathname)}`);
window.location.replace(`../login?redirect=${encodeURIComponent(window.location.pathname)}`);
}
}
module.logout = () => {
localStorage.removeItem('token');
Cookies.remove('x-access-token');
window.location.replace(`/login`);
window.location.replace(`../login`);
}
module.goToPlayer = () => {