From 6a11d3049a9dabd6772c0ffc74a8f20a8c457c6a Mon Sep 17 00:00:00 2001 From: Samuel Elliott <samuelthomas2774@users.noreply.github.com> Date: Tue, 13 Feb 2018 20:09:39 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20error=20when=20the=20CSS=20editor=20isn?= =?UTF-8?q?=E2=80=99t=20open?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/src/modules/csseditor.js | 2 ++ 1 file changed, 2 insertions(+) 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); }