From 2a9e668dceda855f8302e2ca9f81ebd6f0e7b5c1 Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Sun, 25 Sep 2022 18:01:37 +0800
Subject: feat: Safelist all classes needed for alerts

---
 apps/kit/src/routes/+layout.svelte | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'apps/kit/src/routes/+layout.svelte')

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,
-- 
cgit v1.3

