aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/anki.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/bg/js/anki.js b/ext/bg/js/anki.js
index 29ae5f0b..b1e1f7b4 100644
--- a/ext/bg/js/anki.js
+++ b/ext/bg/js/anki.js
@@ -101,7 +101,9 @@ class AnkiConnect {
if (this._remoteVersion < this._localVersion) {
if (this._versionCheckPromise === null) {
const promise = this._invoke('version');
- promise.finally(() => { this._versionCheckPromise = null; });
+ promise
+ .catch(() => {})
+ .finally(() => { this._versionCheckPromise = null; });
this._versionCheckPromise = promise;
}
this._remoteVersion = await this._versionCheckPromise;