0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +00:00

Babel to support ES6 Javascript in older browsers

This commit is contained in:
Trevor Buckner
2021-06-10 00:09:29 -04:00
parent 51aba937f5
commit fc8be9c8fb
7 changed files with 114 additions and 8 deletions

View File

@@ -35,7 +35,7 @@ const getBrewFromId = asyncHandler(async (id, accessType)=>{
brew.style = dedent`
/*=======--- Example CSS styling ---=======*/
/* Any CSS here will apply to your document! */
.myExampleClass {
color: black;
}`;
@@ -217,7 +217,6 @@ app.use((req, res)=>{
templateFn('homebrew', title = req.brew ? req.brew.title : '', props)
.then((page)=>{ res.send(page); })
.catch((err)=>{
console.log('TEMPLATE ERROR');
console.log(err);
return res.sendStatus(500);
});