retain history of header link clicks

close: #196
This commit is contained in:
Aditya Telange 2021-01-25 21:48:15 +05:30
parent 9e99493e69
commit 9691c41983
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

@ -48,7 +48,7 @@
if (id === "top") { if (id === "top") {
history.replaceState(null, null, " "); history.replaceState(null, null, " ");
} else { } else {
history.replaceState(null, null, `#${id}`); history.pushState(null, null, `#${id}`);
} }
}); });
}); });