diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-10 17:49:05 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-10 17:49:05 -0700 |
commit | 1980400a619104bdd15b49fcca42ebd0da0da7be (patch) | |
tree | 84bb66c65db67a8c830eb7cb9d3827f621a2d4d8 /web | |
parent | 29d471c8eea0bcf5d23b9e63180e9f1b7089850c (diff) | |
download | dartboat-1980400a619104bdd15b49fcca42ebd0da0da7be.tar.gz dartboat-1980400a619104bdd15b49fcca42ebd0da0da7be.tar.xz |
web: bloody chromium…
Diffstat (limited to 'web')
-rw-r--r-- | web/static/dartboat.js | 7 | ||||
-rw-r--r-- | web/static/style.css | 2 |
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; |