diff --git a/emain/updater.ts b/emain/updater.ts index 9bb100739..e10faf162 100644 --- a/emain/updater.ts +++ b/emain/updater.ts @@ -66,7 +66,7 @@ export class Updater { autoUpdater.on("error", (err) => { console.log("updater error"); console.log(err); - if (!err.message.includes("net::ERR_INTERNET_DISCONNECTED")) this.status = "error"; + if (!err.toString()?.includes("net::ERR_INTERNET_DISCONNECTED")) this.status = "error"; }); autoUpdater.on("checking-for-update", () => {