monkeeShark/src/web/app/common/scripts/signout.js
2017-02-22 04:19:53 +09:00

7 lines
208 B
JavaScript

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