forked from mystiq/hydrogen-web
detect AbortError properly, name is a string
This commit is contained in:
parent
9afcb154cb
commit
3008367307
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ export class Sync {
|
||||||
// don't run afterSyncCompleted
|
// don't run afterSyncCompleted
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (err.name !== AbortError) {
|
if (err.name !== "AbortError") {
|
||||||
console.warn("stopping sync because of error");
|
console.warn("stopping sync because of error");
|
||||||
console.error(err);
|
console.error(err);
|
||||||
this._error = err;
|
this._error = err;
|
||||||
|
|
Loading…
Reference in a new issue