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
|
||||
continue;
|
||||
}
|
||||
if (err.name !== AbortError) {
|
||||
if (err.name !== "AbortError") {
|
||||
console.warn("stopping sync because of error");
|
||||
console.error(err);
|
||||
this._error = err;
|
||||
|
|
Reference in a new issue