From d168ac6106d282ad21e637ba0e5cf986ef109eb3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 18 Feb 2017 13:13:43 +0900 Subject: :v: --- src/web/app/common/scripts/signout.js | 5 +++++ src/web/app/common/scripts/signout.ls | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 src/web/app/common/scripts/signout.js delete mode 100644 src/web/app/common/scripts/signout.ls (limited to 'src/web/app/common/scripts') diff --git a/src/web/app/common/scripts/signout.js b/src/web/app/common/scripts/signout.js new file mode 100644 index 0000000000..cd752423da --- /dev/null +++ b/src/web/app/common/scripts/signout.js @@ -0,0 +1,5 @@ +module.exports = () => { + localStorage.removeItem('me'); + document.cookie = `i=; domain=.${CONFIG.host}; expires=Thu, 01 Jan 1970 00:00:01 GMT;`; + location.href = '/'; +}; diff --git a/src/web/app/common/scripts/signout.ls b/src/web/app/common/scripts/signout.ls deleted file mode 100644 index a647922678..0000000000 --- a/src/web/app/common/scripts/signout.ls +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = -> - local-storage.remove-item \me - document.cookie = "i=; domain=.#{CONFIG.host}; expires=Thu, 01 Jan 1970 00:00:01 GMT;" - location.href = \/ -- cgit v1.2.3-freya