From 3008367307a4ede8d852c552f25cfc78e75429f3 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 30 Oct 2020 09:54:38 +0100 Subject: [PATCH] detect AbortError properly, name is a string --- src/matrix/Sync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/Sync.js b/src/matrix/Sync.js index 3bdf7d9d..51f66993 100644 --- a/src/matrix/Sync.js +++ b/src/matrix/Sync.js @@ -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;