mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
Check err.toString instead of err.message (#1171)
This commit is contained in:
parent
b3fdbbc331
commit
77fbd324c9
@ -66,7 +66,7 @@ export class Updater {
|
|||||||
autoUpdater.on("error", (err) => {
|
autoUpdater.on("error", (err) => {
|
||||||
console.log("updater error");
|
console.log("updater error");
|
||||||
console.log(err);
|
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", () => {
|
autoUpdater.on("checking-for-update", () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user