window null bug fix
This commit is contained in:
parent
7de0555856
commit
d5fd8b39e7
1 changed files with 4 additions and 1 deletions
|
|
@ -65,7 +65,10 @@ function createWin()
|
|||
backgroundMitt.removeAllListeners("ipc-renderer");
|
||||
|
||||
backgroundMitt.on("ipc-renderer", (channel, ...args) => {
|
||||
win.webContents.send(channel, ...args);
|
||||
if (win)
|
||||
{
|
||||
win.webContents.send(channel, ...args);
|
||||
}
|
||||
});
|
||||
|
||||
win.webContents.send("set-account", store.get("account"));
|
||||
|
|
|
|||
Loading…
Reference in a new issue