Skip to content

Commit

Permalink
refactor: remove async from ipc handlers (#1099)
Browse files Browse the repository at this point in the history
  • Loading branch information
setchy authored May 9, 2024
1 parent e41438a commit cec22f7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,8 @@ menubarApp.on('ready', () => {
}
});

ipcMain.handle('get-platform', async () => {
return process.platform;
});
ipcMain.handle('get-app-version', async () => {
return app.getVersion();
});
ipcMain.handle('get-platform', () => process.platform);
ipcMain.handle('get-app-version', () => app.getVersion());

ipcMain.on('reopen-window', () => menubarApp.showWindow());
ipcMain.on('hide-window', () => menubarApp.hideWindow());
Expand Down

0 comments on commit cec22f7

Please sign in to comment.