diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-08-09 14:14:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-09 14:14:56 -0400 |
commit | fbe575c577b9e6c8279aaa064cf62732c643240a (patch) | |
tree | 3472013d99b05755f14555c6008584e278a10926 /ext/bg | |
parent | 6da02c6eee803756d9a9075bfde333eeb31ce64b (diff) |
Fix a stray error printed due to not catching (#723)
Diffstat (limited to 'ext/bg')
-rw-r--r-- | ext/bg/js/anki.js | 4 |
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; |