about summary refs log tree commit diff
path: root/hosted/logout.js
diff options
context:
space:
mode:
Diffstat (limited to 'hosted/logout.js')
-rw-r--r--hosted/logout.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/hosted/logout.js b/hosted/logout.js
new file mode 100644
index 0000000..4dedd4d
--- /dev/null
+++ b/hosted/logout.js
@@ -0,0 +1,5 @@
+function logoutThenRedirect() {
+    $.post("/logout").done(function(data) {
+        window.location.replace("/");
+    });
+}
\ No newline at end of file