forked from lapikud/lapikud.github.io
mentors update + navbar bug fixes
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
<script>
|
||||
export function routeTo(path) {
|
||||
window.history.pushState({}, "", path);
|
||||
window.scrollTo(0, 0);
|
||||
window.dispatchEvent(new PopStateEvent("popstate"));
|
||||
}
|
||||
|
||||
@@ -14,6 +15,7 @@
|
||||
|
||||
function navigate(path) {
|
||||
window.history.pushState({}, "", path);
|
||||
window.scrollTo(0, 0);
|
||||
currentPath = path;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user