summaryrefslogtreecommitdiff
path: root/ext/bg/js/anki-connect.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-07-29 08:55:29 -0700
committerAlex Yatskov <alex@foosoft.net>2017-07-29 08:55:29 -0700
commitfea35435b22a4eeadbfcc5f29d5f9518700d4306 (patch)
tree48c11e67a2b431af06de89e2d0796ba189d3ad32 /ext/bg/js/anki-connect.js
parentba155e77063bd86fb5751656d8d5d462a129214f (diff)
cleanup
Diffstat (limited to 'ext/bg/js/anki-connect.js')
-rw-r--r--ext/bg/js/anki-connect.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/anki-connect.js b/ext/bg/js/anki-connect.js
index 567e8d3f..80c075fd 100644
--- a/ext/bg/js/anki-connect.js
+++ b/ext/bg/js/anki-connect.js
@@ -58,7 +58,7 @@ class AnkiConnect {
if (this.remoteVersion < this.localVersion) {
this.remoteVersion = await this.ankiInvoke('version');
if (this.remoteVersion < this.localVersion) {
- return Promise.reject('extension and plugin versions incompatible');
+ throw 'extension and plugin versions incompatible';
}
}
}