From db89e3a1a0f2b863b618ed3a7f2a91f6d02f2009 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Thu, 28 Feb 2019 09:45:06 +0200 Subject: [PATCH] sass doesn't like empty --- editor/src/Editor.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/src/Editor.vue b/editor/src/Editor.vue index 54b7d05f..c33635a7 100644 --- a/editor/src/Editor.vue +++ b/editor/src/Editor.vue @@ -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; },