diff --git a/ext/js/pages/settings/anki-controller.js b/ext/js/pages/settings/anki-controller.js index 2bc72e2f27..2d46133647 100644 --- a/ext/js/pages/settings/anki-controller.js +++ b/ext/js/pages/settings/anki-controller.js @@ -583,7 +583,7 @@ class AnkiCardController { this._ankiCardFieldsContainer = this._node.querySelector('.anki-card-fields'); /** @type {HTMLTextAreaElement} */ - const mainSettingsEntry = querySelectorNotNull(document, '#configure-anki-card-format-main-settings-entry'); + const mainSettingsEntry = querySelectorNotNull(document, '[data-modal-action="show,anki-cards"]'); mainSettingsEntry.addEventListener('click', (() => { const updatedCardOptions = this._getCardOptions(ankiOptions, this._optionsType); if (updatedCardOptions === null) { return; } diff --git a/ext/settings.html b/ext/settings.html index b06c63d782..8dfd6f51f0 100644 --- a/ext/settings.html +++ b/ext/settings.html @@ -1838,7 +1838,7 @@