summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefanVukovic99 <stefanvukovic44@gmail.com>2024-04-15 19:18:31 +0200
committerGitHub <noreply@github.com>2024-04-15 17:18:31 +0000
commitef4304979db6a7e08b3dae1eca7e614a0ef30f1a (patch)
tree1373f5f544dc4e50e044166b2ace91c752ade585
parent7df7e1b2bf475edd771a73a950004ab8d5f85ccb (diff)
log anki error when hiding button (#821)
-rw-r--r--ext/js/display/display-anki.js3
1 files changed, 3 insertions, 0 deletions
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) {