diff --git a/core/src/modules/csseditor.js b/core/src/modules/csseditor.js
index 11a1a7ae..8d0b8c43 100644
--- a/core/src/modules/csseditor.js
+++ b/core/src/modules/csseditor.js
@@ -50,10 +50,12 @@ class CSSEditor extends Module {
     }
 
     send(channel, data) {
+        if (!this.editor) return;
         this.editor.webContents.send(channel, data);
     }
 
     set alwaysOnTop(state) {
+        if (!this.editor) return;
         this.editor.setAlwaysOnTop(state);
     }