Merge pull request MisskeyIO#928 from cherry-pick
cherry picked from upstream
This commit is contained in:
commit
ff40c4bfe2
1 changed files with 6 additions and 0 deletions
|
@ -43,6 +43,12 @@ export async function signout() {
|
||||||
if (!$i) return;
|
if (!$i) return;
|
||||||
|
|
||||||
waiting();
|
waiting();
|
||||||
|
document.cookie.split(';').forEach((cookie) => {
|
||||||
|
const cookieName = cookie.split('=')[0].trim();
|
||||||
|
if (cookieName === 'token') {
|
||||||
|
document.cookie = `${cookieName}=; max-age=0; path=/`;
|
||||||
|
}
|
||||||
|
});
|
||||||
miLocalStorage.removeItem('account');
|
miLocalStorage.removeItem('account');
|
||||||
await removeAccount($i.id);
|
await removeAccount($i.id);
|
||||||
const accounts = await getAccounts();
|
const accounts = await getAccounts();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue