Uncomment line in Session.clear()
parent
213b0b762d
commit
ceaeb87454
|
@ -39,7 +39,7 @@ export namespace Session {
|
|||
export function clear(): never {
|
||||
localStorage.clear();
|
||||
sessionStorage.clear();
|
||||
// window.location.href = window.location.origin;
|
||||
window.location.href = window.location.origin || "/";
|
||||
throw new Error("session cleared");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue