mizzkey/src/web/app/common/scripts/signout.js
syuilo d168ac6106 ✌️
2017-02-18 13:13:43 +09:00

6 lines
171 B
JavaScript

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