From 6e622132248ed9d3df878b7093d0a9095868d478 Mon Sep 17 00:00:00 2001 From: Lilian Date: Tue, 28 Feb 2023 16:38:14 +0100 Subject: [PATCH] test --- frontend/src/routes/room/[...slug]/+page.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/routes/room/[...slug]/+page.svelte b/frontend/src/routes/room/[...slug]/+page.svelte index b69ec99..8382cf3 100644 --- a/frontend/src/routes/room/[...slug]/+page.svelte +++ b/frontend/src/routes/room/[...slug]/+page.svelte @@ -412,6 +412,7 @@ let fade = false; beforeNavigate((n) => { + if(!n.from || !n.to) return; console.log('NAVIGATION', n.to.url) if (fade == false && !!n.to?.url) { fade = true; @@ -427,6 +428,7 @@ } }); afterNavigate((n) => { + if(!n.from || !n.to) return; let oldParcoursId = n.from?.url.searchParams.get("p") ||