mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-21 21:06:58 +00:00
not sure why would this break anything
This commit is contained in:
1 parent
3772f8c3b3
commit
09ea3430a0
1 file changed
+5
-2
+5
-2
@@ -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>
|
||||
Reference in new issue
Block a user