This commit is contained in:
Daniel Bulant 2022-12-09 18:22:14 +01:00
parent 21daa3872f
commit 7efc821074

View file

@ -3,7 +3,7 @@
import { logs } from "$lib/util/logs";
let skipFirst = true;
let last = window.location.pathname;
let last = typeof window !== "undefined" && window.location.pathname;
afterNavigate(page => {
if(!["link", "popstate"].includes(page.type)) return; // ignore post hydration and automatic goto
if(skipFirst) return skipFirst = false;