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:
@@ -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