mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
fix relative url bug
This commit is contained in:
parent
4cf737715c
commit
79fa20f2d8
@ -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 = () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user