summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts/signout.ls
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/app/common/scripts/signout.ls')
-rw-r--r--src/web/app/common/scripts/signout.ls4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/web/app/common/scripts/signout.ls b/src/web/app/common/scripts/signout.ls
new file mode 100644
index 0000000000..a647922678
--- /dev/null
+++ b/src/web/app/common/scripts/signout.ls
@@ -0,0 +1,4 @@
+module.exports = ->
+ local-storage.remove-item \me
+ document.cookie = "i=; domain=.#{CONFIG.host}; expires=Thu, 01 Jan 1970 00:00:01 GMT;"
+ location.href = \/