diff options
author | StefanVukovic99 <stefanvukovic44@gmail.com> | 2024-04-20 15:55:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-20 13:55:58 +0000 |
commit | d34feb333846e3167b57c4125658603fe7a4f3a9 (patch) | |
tree | 172393cda7c34baccca0795aa69ea5c8c11313f4 /ext/js/display/display-anki.js | |
parent | 69b57e5efdc8a25025606569f8f20ea508a5263d (diff) |
Prevent logging error when anki is disconnected (#843)
* log only on errors that aren't disconnected anki
* move back
Diffstat (limited to 'ext/js/display/display-anki.js')
-rw-r--r-- | ext/js/display/display-anki.js | 2 |
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); } |