1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

checkForUpdatesAndNotify catch error

This commit is contained in:
Andrew Simachev 2021-08-12 17:14:18 +03:00
parent dc99c88adf
commit f348a24a5c

View file

@ -622,7 +622,10 @@ function checkUpdate (auto) {
return;
};
autoUpdater.checkForUpdatesAndNotify();
autoUpdater.checkForUpdatesAndNotify().catch((err) => {
Util.log('info', 'checkForUpdatesAndNotify error: ' + err);
});
clearTimeout(timeoutUpdate);
timeoutUpdate = setTimeout(() => { checkUpdate(true); }, TIMEOUT_UPDATE);
autoUpdate = auto;