From ef4304979db6a7e08b3dae1eca7e614a0ef30f1a Mon Sep 17 00:00:00 2001 From: StefanVukovic99 Date: Mon, 15 Apr 2024 19:18:31 +0200 Subject: log anki error when hiding button (#821) --- ext/js/display/display-anki.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext/js') diff --git a/ext/js/display/display-anki.js b/ext/js/display/display-anki.js index b7d118da..fd3e8dcd 100644 --- a/ext/js/display/display-anki.js +++ b/ext/js/display/display-anki.js @@ -413,6 +413,9 @@ 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) { -- cgit v1.2.3