aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2021-05-19 20:12:27 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2021-05-19 20:12:27 +0200
commit843144dd85e374ade722e2f2b0b3511a0e34d8f6 (patch)
tree12b14ce9bf85675a1e06b0f8eb893b57909feff0 /assets
parent4d936a55d8f610f95afa1acb67e2014ad8021bc9 (diff)
Regression, fix menu reset script
Diffstat (limited to 'assets')
-rw-r--r--assets/menu-reset.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/menu-reset.js b/assets/menu-reset.js
index f3b90c5..37cb47b 100644
--- a/assets/menu-reset.js
+++ b/assets/menu-reset.js
@@ -1,5 +1,5 @@
(function() {
- var menu = document.querySelector("aside.book-menu nav");
+ var menu = document.querySelector("aside .book-menu-content");
addEventListener("beforeunload", function(event) {
localStorage.setItem("menu.scrollTop", menu.scrollTop);
});