aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app/browser.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app/browser.js b/src/app/browser.js
index 5062d86..f974be0 100644
--- a/src/app/browser.js
+++ b/src/app/browser.js
@@ -5,6 +5,7 @@ var packages = [];
var Browser = {
maxentries: 50,
toggle: (state) => {
+ Browser.loadfront();
if (state) {
browser.scrollTo(0, 0);
overlay.classList.add("shown")
@@ -98,7 +99,7 @@ var Browser = {
}, 1501)
}
}
-}; Browser.loadfront()
+}
document.body.addEventListener("keyup", (e) => {
if (e.key == "Escape") {Browser.toggle(false)}