From 1980400a619104bdd15b49fcca42ebd0da0da7be Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 10 May 2022 17:49:05 -0700 Subject: web: bloody chromium… MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/static/dartboat.js | 7 ++++--- web/static/style.css | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'web') 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; -- cgit v1.2.3-70-g09d2