Skip to content

Commit cec22f7

Browse files
authored
refactor: remove async from ipc handlers (#1099)
1 parent e41438a commit cec22f7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

main.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,8 @@ menubarApp.on('ready', () => {
6060
}
6161
});
6262

63-
ipcMain.handle('get-platform', async () => {
64-
return process.platform;
65-
});
66-
ipcMain.handle('get-app-version', async () => {
67-
return app.getVersion();
68-
});
63+
ipcMain.handle('get-platform', () => process.platform);
64+
ipcMain.handle('get-app-version', () => app.getVersion());
6965

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

0 commit comments

Comments
 (0)