0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-22 06:48:11 +00:00

not sure why would this break anything

This commit is contained in:
Víctor Losada Hernández
2026-03-22 02:23:07 +01:00
parent 3772f8c3b3
commit 09ea3430a0

View File

@@ -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');
}
</script>
</body>
</html>