handle invoke in IPC

This commit is contained in:
lnrdnl committed 2024-02-20 15:32:17 +01:00
1 parent fd80a831e1
commit 1b015078a6
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -7,8 +7,8 @@ import Constants from './utils/Constants'
export default class IPCs {
static initialize(): void {
// Get application version
ipcMain.on('msgRequestGetVersion', (event: IpcMainEvent) => {
event.returnValue = Constants.APP_VERSION
ipcMain.handle('msgRequestGetVersion', () => {
return Constants.APP_VERSION
})
// Open url via web browser