From 8de1e9b3d8828417bebdeb9bad6dc8ea7f391c12 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 3 Apr 2021 15:23:55 -0400 Subject: Update logged data name to dictionaryEntry (#1590) --- ext/js/display/display.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/js') 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; } -- cgit v1.2.3