Fix error when the CSS editor isn’t open
This commit is contained in:
parent
729657f345
commit
6a11d3049a
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue