mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-22 08:58:11 +00:00
not sure why would this break anything
This commit is contained in:
@@ -34,8 +34,11 @@
|
|||||||
document.title = `${prefix}${title} - The Homebrewery`;
|
document.title = `${prefix}${title} - The Homebrewery`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const isAdmin = window.location.pathname.startsWith('/admin');
|
if (window.location.pathname.startsWith('/admin')) {
|
||||||
import(isAdmin ? '/client/admin/main.jsx' : '/client/homebrew/main.jsx');
|
import('/client/admin/main.jsx');
|
||||||
|
} else {
|
||||||
|
import('/client/homebrew/main.jsx');
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user