diff --git a/ext/js/display/display-anki.js b/ext/js/display/display-anki.js index dc6767021f..9df20f2512 100644 --- a/ext/js/display/display-anki.js +++ b/ext/js/display/display-anki.js @@ -413,9 +413,6 @@ export class DisplayAnki { if (button !== null) { button.disabled = !canAdd; button.hidden = (ankiError !== null); - if (ankiError) { - log.error(ankiError); - } // If entry has noteIds, show the "add duplicate" button. if (Array.isArray(noteIds) && noteIds.length > 0) { @@ -692,6 +689,9 @@ export class DisplayAnki { } catch (e) { infos = this._getAnkiNoteInfoForceValue(notes, false); ankiError = toError(e); + if (ankiError.message !== 'Anki not connected') { + log.error(e); + } } /** @type {import('display-anki').DictionaryEntryDetails[]} */