Fix error when the CSS editor isn’t open

This commit is contained in:
Samuel Elliott 2018-02-13 20:09:39 +00:00
parent 729657f345
commit 6a11d3049a
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}