From d34feb333846e3167b57c4125658603fe7a4f3a9 Mon Sep 17 00:00:00 2001 From: StefanVukovic99 Date: Sat, 20 Apr 2024 15:55:58 +0200 Subject: Prevent logging error when anki is disconnected (#843) * log only on errors that aren't disconnected anki * move back --- ext/js/display/display-anki.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') 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); } -- cgit v1.2.3