recording timer, bux fixes, simplified emitter
This commit is contained in:
parent
ccb07d594b
commit
7de0555856
5 changed files with 30 additions and 16 deletions
|
|
@ -52,7 +52,6 @@ function createWin()
|
|||
|
||||
.on("closed", () => {
|
||||
store.set("focus", false);
|
||||
backgroundMitt.removeAllListeners("ipc-renderer");
|
||||
win = null;
|
||||
})
|
||||
|
||||
|
|
@ -63,9 +62,10 @@ function createWin()
|
|||
|
||||
win.webContents.on("did-finish-load", () => {
|
||||
|
||||
/* Gateway to the frontend */
|
||||
backgroundMitt.on("ipc-renderer", (e) => {
|
||||
win.webContents.send(e.channel, e.payload);
|
||||
backgroundMitt.removeAllListeners("ipc-renderer");
|
||||
|
||||
backgroundMitt.on("ipc-renderer", (channel, ...args) => {
|
||||
win.webContents.send(channel, ...args);
|
||||
});
|
||||
|
||||
win.webContents.send("set-account", store.get("account"));
|
||||
|
|
|
|||
Loading…
Reference in a new issue