mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-30 21:52:43 +00:00
adjust frontend error handling, add client/server mismatch middleware
This commit is contained in:
@@ -22,6 +22,9 @@ const template = async function(name, title='', props = {}){
|
||||
<body>
|
||||
<main id="reactRoot">${require(`../build/${name}/ssr.js`)(props)}</main>
|
||||
<script src=${`/${name}/bundle.js`}></script>
|
||||
<script>
|
||||
sessionStorage.setItem('version', '${props.version}');
|
||||
</script>
|
||||
<script>start_app(${JSON.stringify(props)})</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user