Regression, fix menu reset script

This commit is contained in:
Alex Shpak 2021-05-19 20:12:27 +02:00
parent 4d936a55d8
commit 843144dd85

View File

@ -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);
});