handle invoke in IPC
This commit is contained in:
1 parent
fd80a831e1
commit
1b015078a6
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user