diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/app/browser.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/app/browser.js b/src/app/browser.js index f974be0..e1f37e5 100644 --- a/src/app/browser.js +++ b/src/app/browser.js @@ -5,11 +5,14 @@ var packages = []; var Browser = { maxentries: 50, toggle: (state) => { - Browser.loadfront(); if (state) { browser.scrollTo(0, 0); overlay.classList.add("shown") browser.classList.add("shown") + + if (browserEntries.querySelectorAll(".el").length == 0) { + Browser.loadfront(); + } return } else if (! state) { if (state != undefined) { |