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');
+ }