From ccd630a2b05c9de459f9ff1ea1fc95efe2348443 Mon Sep 17 00:00:00 2001 From: pengx17 Date: Wed, 18 Sep 2024 04:16:54 +0000 Subject: [PATCH] fix(electron): updater not working on startup (#8274) --- packages/common/infra/src/atom/settings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/infra/src/atom/settings.ts b/packages/common/infra/src/atom/settings.ts index 18d54a5d49..9293c5568e 100644 --- a/packages/common/infra/src/atom/settings.ts +++ b/packages/common/infra/src/atom/settings.ts @@ -64,7 +64,7 @@ const appSettingEffect = atomEffect(get => { if (BUILD_CONFIG.isElectron) { logger.debug('sync settings to electron', settings); // this api type in @affine/electron-api, but it is circular dependency this package, use any here - (window as any).apis?.updater + (window as any).__apis?.updater .setConfig({ autoCheckUpdate: settings.autoCheckUpdate, autoDownloadUpdate: settings.autoDownloadUpdate,