diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-09-25 12:01:37 +0200 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-09-25 12:01:37 +0200 |
| commit | 2a9e668dceda855f8302e2ca9f81ebd6f0e7b5c1 (patch) | |
| tree | 13f7a597c2e31210e722388de8aabf0d43ba5326 /apps/kit/src/routes/+layout.svelte | |
| parent | 9f65b9e65ead6cc6b8ce5cfcf650b49fe134cd91 (diff) | |
| download | greatoffice-2a9e668dceda855f8302e2ca9f81ebd6f0e7b5c1.tar.xz greatoffice-2a9e668dceda855f8302e2ca9f81ebd6f0e7b5c1.zip | |
feat: Safelist all classes needed for alerts
Diffstat (limited to 'apps/kit/src/routes/+layout.svelte')
| -rw-r--r-- | apps/kit/src/routes/+layout.svelte | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/kit/src/routes/+layout.svelte b/apps/kit/src/routes/+layout.svelte index cbb4856..f8cdf83 100644 --- a/apps/kit/src/routes/+layout.svelte +++ b/apps/kit/src/routes/+layout.svelte @@ -15,8 +15,9 @@ const sessionIsValid = await is_active(); // TODO: ticket.to can be empty while navigating, so coalesce could probably cause non-public routes to cause a redir to /login... const isPublicRoute = - ticket.to?.routeId?.startsWith("(public)") ?? true; - + (ticket.to?.routeId?.startsWith("(public)") ?? true) || + ticket.to?.routeId?.startsWith("book"); + console.log(ticket); console.log("redir: ", { isPublicRoute, sessionIsValid, |
