1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-17 08:09:09 +09:00
MisskeyIO/src/web/app/common/scripts/signout.ts
2017-11-13 18:05:35 +09:00

8 lines
201 B
TypeScript

import CONFIG from './config';
export default () => {
localStorage.removeItem('me');
document.cookie = `i=; domain=.${CONFIG.host}; expires=Thu, 01 Jan 1970 00:00:01 GMT;`;
location.href = '/';
};