diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-04-03 15:23:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-03 15:23:55 -0400 |
commit | 8de1e9b3d8828417bebdeb9bad6dc8ea7f391c12 (patch) | |
tree | 34b9e12ec6c0372679e9817a2954a182c3affdb7 | |
parent | 4d5db960d27d72366824cc57a5db95626631b858 (diff) |
Update logged data name to dictionaryEntry (#1590)
-rw-r--r-- | ext/js/display/display.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/js/display/display.js b/ext/js/display/display.js index ce4459fe..0677611e 100644 --- a/ext/js/display/display.js +++ b/ext/js/display/display.js @@ -1867,14 +1867,14 @@ class Display extends EventDispatcher { async _logDefinitionData(index) { if (index < 0 || index >= this._definitions.length) { return; } - const definition = this._definitions[index]; + const dictionaryEntry = this._definitions[index]; let ankiNoteData; let ankiNoteDataException; try { const context = this._getNoteContext(); const {general: {resultOutputMode, glossaryLayoutMode, compactTags}} = this._options; ankiNoteData = await this._ankiNoteBuilder.getRenderingData({ - definition, + definition: dictionaryEntry, mode: 'test', context, resultOutputMode, @@ -1886,7 +1886,7 @@ class Display extends EventDispatcher { } catch (e) { ankiNoteDataException = e; } - const result = {definition, ankiNoteData}; + const result = {dictionaryEntry, ankiNoteData}; if (typeof ankiNoteDataException !== 'undefined') { result.ankiNoteDataException = ankiNoteDataException; } |