mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-14 10:42:38 +00:00
cleanup
This commit is contained in:
@@ -18,12 +18,6 @@ const { printCurrentBrew } = require('../../../shared/helpers.js');
|
|||||||
const DOMPurify = require('dompurify');
|
const DOMPurify = require('dompurify');
|
||||||
const purifyConfig = { FORCE_BODY: true, SANITIZE_DOM: false };
|
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 PAGE_HEIGHT = 1056;
|
||||||
|
|
||||||
const INITIAL_CONTENT = dedent`
|
const INITIAL_CONTENT = dedent`
|
||||||
@@ -191,12 +185,6 @@ const BrewRenderer = (props)=>{
|
|||||||
document.dispatchEvent(new MouseEvent('click'));
|
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 (
|
return (
|
||||||
<>
|
<>
|
||||||
{/*render dummy page while iFrame is mounting.*/}
|
{/*render dummy page while iFrame is mounting.*/}
|
||||||
|
|||||||
Reference in New Issue
Block a user