0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 14:12:40 +00:00

Revert template.js changes for separate PR

This commit is contained in:
G.Ambatte
2024-05-06 09:46:34 +12:00
parent 1af989c4a3
commit 4e0ec75e58

View File

@@ -8,8 +8,6 @@ const template = async function(name, title='', props = {}){
});
const ogMetaTags = ogTags.join('\n');
const cleanProps = JSON.stringify(props).replace(/<\/script/gi, '<\\\/script');
return `<!DOCTYPE html>
<html>
<head>
@@ -25,7 +23,7 @@ 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>start_app(${cleanProps})</script>
<script>start_app(${JSON.stringify(props)})</script>
</body>
</html>
`;