From 09ea3430a080638029c23f01e5b21136d715a663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Sun, 22 Mar 2026 02:23:07 +0100 Subject: [PATCH] not sure why would this break anything --- index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index f45e45b82..9a6a7eca6 100644 --- a/index.html +++ b/index.html @@ -34,8 +34,11 @@ document.title = `${prefix}${title} - The Homebrewery`; } - const isAdmin = window.location.pathname.startsWith('/admin'); - import(isAdmin ? '/client/admin/main.jsx' : '/client/homebrew/main.jsx'); + if (window.location.pathname.startsWith('/admin')) { + import('/client/admin/main.jsx'); + } else { + import('/client/homebrew/main.jsx'); + }