fix(electron): updater not working on startup (#8274)

This commit is contained in:
pengx17 2024-09-18 04:16:54 +00:00
parent 7a26c76e53
commit ccd630a2b0
No known key found for this signature in database
GPG Key ID: 23F23D9E8B3971ED

View File

@ -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,