0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-29 19:52:43 +00:00
This commit is contained in:
Trevor Buckner
2024-07-23 17:24:50 -04:00
parent 27c52fc244
commit 82f73fb21d

View File

@@ -18,12 +18,6 @@ const { printCurrentBrew } = require('../../../shared/helpers.js');
const DOMPurify = require('dompurify');
const purifyConfig = { FORCE_BODY: true, SANITIZE_DOM: false };
const staticThemes = require('themes/themes.json');
const isStaticTheme = (renderer, themeName)=>{
return staticThemes[renderer]?.[themeName] !== undefined;
};
const PAGE_HEIGHT = 1056;
const INITIAL_CONTENT = dedent`
@@ -191,12 +185,6 @@ const BrewRenderer = (props)=>{
document.dispatchEvent(new MouseEvent('click'));
};
let rendererPath = '';
const themePath = props.theme;
if(staticThemes[_.upperFirst(props.renderer)]?.[props.theme] !== undefined) //Change CSS path if is staticTheme
rendererPath = `${_.upperFirst(props.renderer)}/`;
return (
<>
{/*render dummy page while iFrame is mounting.*/}