diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-18 13:13:43 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-18 13:13:43 +0900 |
| commit | d168ac6106d282ad21e637ba0e5cf986ef109eb3 (patch) | |
| tree | 1580fa4b0548ce761a75f82bdc8cab41b527b4e1 /src/web/app/common/scripts | |
| parent | :v: (diff) | |
| download | sharkey-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.js | 5 | ||||
| -rw-r--r-- | src/web/app/common/scripts/signout.ls | 4 |
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 = \/ |