summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-18 13:13:43 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-18 13:13:43 +0900
commitd168ac6106d282ad21e637ba0e5cf986ef109eb3 (patch)
tree1580fa4b0548ce761a75f82bdc8cab41b527b4e1 /src/web/app/common/scripts
parent:v: (diff)
downloadsharkey-d168ac6106d282ad21e637ba0e5cf986ef109eb3.tar.gz
sharkey-d168ac6106d282ad21e637ba0e5cf986ef109eb3.tar.bz2
sharkey-d168ac6106d282ad21e637ba0e5cf986ef109eb3.zip
:v:
Diffstat (limited to 'src/web/app/common/scripts')
-rw-r--r--src/web/app/common/scripts/signout.js5
-rw-r--r--src/web/app/common/scripts/signout.ls4
2 files changed, 5 insertions, 4 deletions
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 = \/