diff --git a/materialious/electron/src/index.ts b/materialious/electron/src/index.ts index 9b395569..b1a2e6a4 100644 --- a/materialious/electron/src/index.ts +++ b/materialious/electron/src/index.ts @@ -4,7 +4,7 @@ import { setupElectronDeepLinking } from '@capacitor-community/electron'; import type { MenuItemConstructorOptions } from 'electron'; -import { app, ipcMain, MenuItem, session, webContents } from 'electron'; +import { app, ipcMain, MenuItem, session } from 'electron'; import electronIsDev from 'electron-is-dev'; import unhandled from 'electron-unhandled'; import { autoUpdater } from 'electron-updater'; diff --git a/materialious/electron/src/preload.ts b/materialious/electron/src/preload.ts index 278f9285..b27e251d 100644 --- a/materialious/electron/src/preload.ts +++ b/materialious/electron/src/preload.ts @@ -8,5 +8,7 @@ contextBridge.exposeInMainWorld('electronAPI', { ipcRenderer.invoke('generatePoToken', bgChallenge, requestKey, visitorData), setAllowInsecureSSL: async (allow: boolean) => { return await ipcRenderer.invoke('setAllowInsecureSSL', allow); - } + }, + doUpdateCheck: (disableAutoUpdate: boolean) => + ipcRenderer.invoke('doUpdateCheck', disableAutoUpdate) }); diff --git a/materialious/src/app.d.ts b/materialious/src/app.d.ts index 753ee6b1..6848f211 100644 --- a/materialious/src/app.d.ts +++ b/materialious/src/app.d.ts @@ -19,6 +19,7 @@ declare global { visitorData: string ) => Promise; setAllowInsecureSSL: (allowInsecureSSL: boolean) => Promoise; + doUpdateCheck: (disableAutoUpdate: boolean) => Promise; }; } }