mirror of
https://github.com/danbulant/Mangades
synced 2026-06-17 21:31:03 +00:00
fix ssr
This commit is contained in:
parent
21daa3872f
commit
7efc821074
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue