0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-26 09:32:51 +00:00

Revert "Prevent loading of undefined renderer or theme themebundle."

This reverts commit 136e877ee6.
This commit is contained in:
David Bolack
2024-08-13 12:09:26 -05:00
parent 136e877ee6
commit 6ec51bf725
3 changed files with 4 additions and 6 deletions

View File

@@ -43,9 +43,7 @@ const HomePage = createClass({
editor : React.createRef(null),
componentDidMount : function() {
if(this.props.brew.renderer || this.props.brew.theme){
fetchThemeBundle(this, this.props.brew.renderer, this.props.brew.theme);
}
fetchThemeBundle(this, this.props.brew.renderer, this.props.brew.theme);
},
handleSave : function(){

View File

@@ -32,9 +32,7 @@ const SharePage = createClass({
componentDidMount : function() {
document.addEventListener('keydown', this.handleControlKeys);
if(this.props.brew.renderer || this.props.brew.theme){
fetchThemeBundle(this, this.props.brew.renderer, this.props.brew.theme);
}
fetchThemeBundle(this, this.props.brew.renderer, this.props.brew.theme);
},
componentWillUnmount : function() {

View File

@@ -89,6 +89,7 @@ app.get('/', (req, res, next)=>{
title : 'Homepage',
description : 'Homepage'
};
splitTextStyleAndMetadata(req.brew);
return next();
});
@@ -499,6 +500,7 @@ app.use(async (err, req, res, next)=>{
pureError : getPureError(err)
};
req.customUrl= '/error';
const page = await renderPage(req, res);
if(!page) return;
res.send(page);