mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-22 03:19:25 +00:00
Regression, fix menu reset script
This commit is contained in:
parent
4d936a55d8
commit
843144dd85
@ -1,5 +1,5 @@
|
|||||||
(function() {
|
(function() {
|
||||||
var menu = document.querySelector("aside.book-menu nav");
|
var menu = document.querySelector("aside .book-menu-content");
|
||||||
addEventListener("beforeunload", function(event) {
|
addEventListener("beforeunload", function(event) {
|
||||||
localStorage.setItem("menu.scrollTop", menu.scrollTop);
|
localStorage.setItem("menu.scrollTop", menu.scrollTop);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user