Skip to content

Commit

Permalink
Prevent updating dict entry details for anki when anki is disabled (y…
Browse files Browse the repository at this point in the history
…omidevs#909)

* Prevent updating dict entry details for anki when anki is disabled

* Move check to _updateDictionaryEntryDetails

* Fix if
  • Loading branch information
Kuuuube authored May 11, 2024
1 parent d68e93e commit 2bcb0bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/js/display/display-anki.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ export class DisplayAnki {

/** */
async _updateDictionaryEntryDetails() {
if (!this._display.getOptions()?.anki.enable) { return; }
const {dictionaryEntries} = this._display;
/** @type {?import('core').TokenObject} */
const token = {};
Expand Down

0 comments on commit 2bcb0bc

Please sign in to comment.