aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefanVukovic99 <stefanvukovic44@gmail.com>2024-04-20 15:55:58 +0200
committerGitHub <noreply@github.com>2024-04-20 13:55:58 +0000
commitd34feb333846e3167b57c4125658603fe7a4f3a9 (patch)
tree172393cda7c34baccca0795aa69ea5c8c11313f4
parent69b57e5efdc8a25025606569f8f20ea508a5263d (diff)
Prevent logging error when anki is disconnected (#843)
* log only on errors that aren't disconnected anki * move back
-rw-r--r--ext/js/display/display-anki.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/display/display-anki.js b/ext/js/display/display-anki.js
index dc676702..446b8b48 100644
--- a/ext/js/display/display-anki.js
+++ b/ext/js/display/display-anki.js
@@ -413,7 +413,7 @@ export class DisplayAnki {
if (button !== null) {
button.disabled = !canAdd;
button.hidden = (ankiError !== null);
- if (ankiError) {
+ if (ankiError && ankiError.message !== 'Anki not connected') {
log.error(ankiError);
}