mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-23 08:48:28 +00:00
Check err.toString instead of err.message (#1171)
This commit is contained in:
parent
b3fdbbc331
commit
77fbd324c9
1 changed files with 1 additions and 1 deletions
|
|
@ -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", () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue