Don't save style tab if user never put anything in it
This commit is contained in:
1 parent
e2280197b9
commit
e07bb1b3c2
4 files changed
+18
-25
No files matched your search
@@ -20,10 +20,12 @@ const getGoodBrewTitle = (text)=>{
|
||||
};
|
||||
|
||||
const mergeBrewText = (text, style)=>{
|
||||
text = `\`\`\`css\n` +
|
||||
`${style}\n` +
|
||||
`\`\`\`\n\n` +
|
||||
`${text}`;
|
||||
if(typeof style !== 'undefined') {
|
||||
text = `\`\`\`css\n` +
|
||||
`${style}\n` +
|
||||
`\`\`\`\n\n` +
|
||||
`${text}`;
|
||||
}
|
||||
return text;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user