yumechi-no-kuni/src/web/app/common/scripts/signout.js

8 lines
208 B
JavaScript
Raw Normal View History

2017-02-21 13:19:53 -06:00
const CONFIG = require('./config');
2017-02-17 22:13:43 -06:00
module.exports = () => {
localStorage.removeItem('me');
document.cookie = `i=; domain=.${CONFIG.host}; expires=Thu, 01 Jan 1970 00:00:01 GMT;`;
location.href = '/';
};