diff --git a/src/main/IPCs.ts b/src/main/IPCs.ts index 2003de3..03f1d45 100644 --- a/src/main/IPCs.ts +++ b/src/main/IPCs.ts @@ -17,7 +17,7 @@ export default class IPCs { }) // Open file - ipcMain.handle('msgOpenFile', async (event, filter: string) => { + ipcMain.handle('msgOpenFile', async (event: IpcMainEvent, filter: string) => { const filters = [] if (filter === 'text') { filters.push({ name: 'Text', extensions: ['txt', 'json'] })