aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-08-09 14:14:56 -0400
committerGitHub <noreply@github.com>2020-08-09 14:14:56 -0400
commitfbe575c577b9e6c8279aaa064cf62732c643240a (patch)
tree3472013d99b05755f14555c6008584e278a10926 /ext/bg/js
parent6da02c6eee803756d9a9075bfde333eeb31ce64b (diff)
Fix a stray error printed due to not catching (#723)
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;