mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-08 10:38:18 +01:00
detect AbortError properly, name is a string
This commit is contained in:
parent
9afcb154cb
commit
3008367307
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user