mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-21 19:09:29 +00:00
Regression, fix menu reset script
This commit is contained in:
parent
4d936a55d8
commit
843144dd85
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user