path to current page only

This commit is contained in:
ville rantanen
2017-07-07 08:22:51 +03:00
parent 316e85706d
commit c152d9934a

View File

@@ -297,7 +297,7 @@ function toggle_blank() {
arrow.innerHTML=arrowChar;
}
function scroll_save() {
document.cookie = "position=" + window.scrollY + ";";
document.cookie = "position=" + window.scrollY + "; path=" + window.location.pathname;
}
function scroll_load() {
var position=parseInt(get_cookie("position"));