truly blacklist plugins and don't load them

This commit is contained in:
Eugene Pankov
2021-05-16 18:59:25 +02:00
parent 8f2a3f1333
commit 2f99eeef40
4 changed files with 47 additions and 13 deletions

View File

@@ -290,6 +290,15 @@ export class Window {
this.send('host:window-focused')
})
ipcMain.on('ready', event => {
if (!this.window || event.sender !== this.window.webContents) {
return
}
this.window.webContents.send('start', {
config: this.configStore,
})
})
ipcMain.on('window-focus', event => {
if (!this.window || event.sender !== this.window.webContents) {
return