mirror of
https://github.com/danbulant/Mangades
synced 2026-07-06 11:30:46 +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";
|
import { logs } from "$lib/util/logs";
|
||||||
|
|
||||||
let skipFirst = true;
|
let skipFirst = true;
|
||||||
let last = window.location.pathname;
|
let last = typeof window !== "undefined" && window.location.pathname;
|
||||||
afterNavigate(page => {
|
afterNavigate(page => {
|
||||||
if(!["link", "popstate"].includes(page.type)) return; // ignore post hydration and automatic goto
|
if(!["link", "popstate"].includes(page.type)) return; // ignore post hydration and automatic goto
|
||||||
if(skipFirst) return skipFirst = false;
|
if(skipFirst) return skipFirst = false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue