sass doesn't like empty
This commit is contained in:
parent
6030a78b91
commit
db89e3a1a0
|
@ -193,8 +193,8 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
async injectStyle(item) {
|
async injectStyle(item) {
|
||||||
if (item.content === '') return;
|
const style = item.content.length <= 0 ? ' ' : item.content;
|
||||||
const result = await ClientIPC.send('bd-editor-injectStyle', { id: item.name.split('.')[0], style: item.content, mode: item.mode });
|
const result = await ClientIPC.send('bd-editor-injectStyle', { id: item.name.split('.')[0], style, mode: item.mode });
|
||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue