aboutsummaryrefslogtreecommitdiff
path: root/src/app/js/dom_events.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-06-15 23:34:53 +0200
committerGitHub <noreply@github.com>2024-06-15 23:34:53 +0200
commit938362cc27682f976cfbe16d7c4f898485e893c4 (patch)
tree1774a947415b34ffe06a033f6df15583361dd004 /src/app/js/dom_events.js
parent5f3259f5b62609e57468592dfaf7b1bd9b6f0bad (diff)
parent6538b818302829f917fa636aa4d5678466841705 (diff)
downloadViper-938362cc27682f976cfbe16d7c4f898485e893c4.tar.gz
Viper-938362cc27682f976cfbe16d7c4f898485e893c4.zip
Merge branch 'main' into gamepad-support
Diffstat (limited to 'src/app/js/dom_events.js')
-rw-r--r--src/app/js/dom_events.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/js/dom_events.js b/src/app/js/dom_events.js
index c16a838..ab79c57 100644
--- a/src/app/js/dom_events.js
+++ b/src/app/js/dom_events.js
@@ -1,3 +1,4 @@
+const popups = require("./popups");
const settings = require("./settings");
let drag_timer;
@@ -27,8 +28,7 @@ document.addEventListener("drop", (e) => {
document.body.addEventListener("keyup", (e) => {
if (e.key == "Escape") {
- browser.toggle(false);
- settings.popup.toggle(false);
+ popups.hide_last();
}
})