1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-18 00:28:16 +09:00
hotomoe/src/web/app/common/scripts/signout.ts

8 lines
201 B
TypeScript
Raw Normal View History

2017-03-18 20:05:11 +09:00
import CONFIG from './config';
2017-02-22 04:19:53 +09:00
2017-03-18 20:05:11 +09:00
export default () => {
2017-02-18 13:13:43 +09:00
localStorage.removeItem('me');
document.cookie = `i=; domain=.${CONFIG.host}; expires=Thu, 01 Jan 1970 00:00:01 GMT;`;
location.href = '/';
};