fix: loading

This commit is contained in:
Torsten Dittmann
2022-11-15 15:55:16 +01:00
parent 9349db6b97
commit e7c08b1ef7
+2 -1
View File
@@ -55,14 +55,15 @@
});
}
} else {
console.log(4);
if (acceptedRoutes.includes($page.url.pathname)) {
await goto(`${base}${$page.url.pathname}${$page.url.search}`);
} else {
await goto(`${base}/login`, {
replaceState: true
});
loading.set(false);
}
loading.set(false);
}
}
});