diff --git a/src/main/index.electron.ts b/src/main/index.electron.ts index dc50ce9..f36e659 100644 --- a/src/main/index.electron.ts +++ b/src/main/index.electron.ts @@ -468,7 +468,13 @@ const loadPlugins = async ({ const args: PluginInMainArgs = { appInfo, packages: { - Electron: { ipcMain, app, browserWindow: BrowserWindow, dialog }, + Electron: { + app, + browserWindow: BrowserWindow, + dialog, + ipcMain, + session, + }, }, functions: { openWindow: (args: OpenWindowArg) => { diff --git a/src/types/plugin.ts b/src/types/plugin.ts index 056fce4..9d4950d 100644 --- a/src/types/plugin.ts +++ b/src/types/plugin.ts @@ -138,9 +138,10 @@ export type PluginInMainArgs = { packages: { Electron: { app: Electron.App - ipcMain: Electron.IpcMain browserWindow: typeof Electron.BrowserWindow dialog: Electron.Dialog + ipcMain: Electron.IpcMain + session: typeof Electron.Session } } functions: {