Skip to content

Commit 8384dd5

Browse files
committed
Remove setInterval (no longer needed without localStorage)
1 parent d746206 commit 8384dd5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/resources/script.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,10 @@ function initScrollSave() {
7878
// a long time but not moved by re-saving its position every hour.
7979
leftSidebar.onscroll = saveLeftScroll;
8080
leftSidebar.addEventListener("scroll", saveLeftScroll, true);
81-
setInterval(saveLeftScroll, 3600000 * 1);
8281
mainContent.onscroll = saveMainContentScroll;
8382
mainContent.addEventListener("scroll", saveMainContentScroll, true);
84-
setInterval(saveMainContentScroll, 3600000 * 1);
8583
rightSidebar.onscroll = saveRightScroll;
8684
rightSidebar.addEventListener("scroll", saveRightScroll, true);
87-
setInterval(saveRightScroll, 3600000 * 1);
8885
}
8986

9087
function initSearch(name) {

0 commit comments

Comments
 (0)