Skip to content

Commit ccd630a

Browse files
committed
fix(electron): updater not working on startup (#8274)
1 parent 7a26c76 commit ccd630a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/common/infra/src/atom/settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const appSettingEffect = atomEffect(get => {
6464
if (BUILD_CONFIG.isElectron) {
6565
logger.debug('sync settings to electron', settings);
6666
// this api type in @affine/electron-api, but it is circular dependency this package, use any here
67-
(window as any).apis?.updater
67+
(window as any).__apis?.updater
6868
.setConfig({
6969
autoCheckUpdate: settings.autoCheckUpdate,
7070
autoDownloadUpdate: settings.autoDownloadUpdate,

0 commit comments

Comments
 (0)