summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/static/dartboat.js7
-rw-r--r--web/static/style.css2
2 files changed, 5 insertions, 4 deletions
diff --git a/web/static/dartboat.js b/web/static/dartboat.js
index b2b8481..ace2900 100644
--- a/web/static/dartboat.js
+++ b/web/static/dartboat.js
@@ -123,15 +123,16 @@ function storeOpt(opt, val) {
localStorage.setItem(UTF8ToString(opt), UTF8ToString(val));
}
-function prevDef(e) {
+function exitDialogue(e) {
e.preventDefault();
+ e.returnValue = ''; // bloody chromium
}
function enableExitDialogue(enable) {
if (enable)
- window.addEventListener('beforeunload', prevDef);
+ window.addEventListener('beforeunload', exitDialogue);
else
- window.removeEventListener('beforeunload', prevDef);
+ window.removeEventListener('beforeunload', exitDialogue);
}
function boatAfloat() {
diff --git a/web/static/style.css b/web/static/style.css
index a7d1244..f501429 100644
--- a/web/static/style.css
+++ b/web/static/style.css
@@ -203,7 +203,7 @@ body {
#controls #keypad-list.visible {
grid-column: 1 / -1;
- overflow: scroll;
+ overflow: auto;
display: flex;
flex-direction: column;