mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 08:12:25 +03:00
fix(electron): updater not working on startup (#8274)
This commit is contained in:
parent
7a26c76e53
commit
ccd630a2b0
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user