mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-27 18:13:08 +00:00
Move Themes/styles into iFrame Head
This commit is contained in:
@@ -44,7 +44,7 @@ const fetchThemeBundle = async (obj, renderer, theme)=>{
|
||||
if(!res) return;
|
||||
|
||||
const themeBundle = res.body;
|
||||
themeBundle.joinedStyles = themeBundle.styles.map((style)=>`<style>${style}</style>`).join('\n\n');
|
||||
themeBundle.joinedStyles = themeBundle.styles.map((style)=>`${style}`).join('\n\n');
|
||||
obj.setState((prevState)=>({
|
||||
...prevState,
|
||||
themeBundle : themeBundle
|
||||
|
||||
Reference in New Issue
Block a user