From 0b03d23a6d5f5596c085934555bb4f66bdaa0b96 Mon Sep 17 00:00:00 2001 From: mantou132 <709922234@qq.com> Date: Wed, 24 Aug 2022 04:42:11 +0800 Subject: [PATCH] Avoid check update error message --- src/main/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/index.ts b/src/main/index.ts index 58c7c97..075dd8d 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -37,7 +37,11 @@ if (!gotTheLock) { let tray: Tray; app.on('ready', () => { - if (settings.enableUpdateCheck === 'on') autoUpdater.checkForUpdatesAndNotify(); + if (settings.enableUpdateCheck === 'on') { + autoUpdater.checkForUpdatesAndNotify().catch(() => { + // + }); + } const window = new Window(); tray = new GtTray(path.resolve(__public, 'iconTemplate@2x.png'), window);