sass doesn't like empty

This commit is contained in:
Jiiks 2019-02-28 09:45:06 +02:00
parent 6030a78b91
commit db89e3a1a0
1 changed files with 2 additions and 2 deletions

View File

@ -193,8 +193,8 @@
},
async injectStyle(item) {
if (item.content === '') return;
const result = await ClientIPC.send('bd-editor-injectStyle', { id: item.name.split('.')[0], style: item.content, mode: item.mode });
const style = item.content.length <= 0 ? ' ' : item.content;
const result = await ClientIPC.send('bd-editor-injectStyle', { id: item.name.split('.')[0], style, mode: item.mode });
return result;
},