summaryrefslogtreecommitdiff
path: root/web/static/dartboat.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/static/dartboat.js')
-rw-r--r--web/static/dartboat.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/static/dartboat.js b/web/static/dartboat.js
index 6051b7e..9e97dfc 100644
--- a/web/static/dartboat.js
+++ b/web/static/dartboat.js
@@ -158,6 +158,7 @@ document.addEventListener('DOMContentLoaded', () => {
command.split(';').forEach(x =>
promptHandle(...x.split(':', 2)));
});
+ $('#key-exit').addEventListener('click', () => promptHandle('exit'));
f = e => _set_opt(toCString(e.target.dataset.opt),
toCString(e.target.value));