diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-12-19 01:15:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-19 06:15:15 +0000 |
commit | 20dd6112724a77fee16281930e79a2e6822acff7 (patch) | |
tree | 5a9d56088ee01e7d38ffebee3f64891192ff3e57 /ext/js/display | |
parent | 1ced9aafc00c10992bab8bd3f1b6b1397f05b7b9 (diff) |
Remove TemplateRendererProxy mock (#388)
Diffstat (limited to 'ext/js/display')
-rw-r--r-- | ext/js/display/display-anki.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/js/display/display-anki.js b/ext/js/display/display-anki.js index 322237da..423cdfdc 100644 --- a/ext/js/display/display-anki.js +++ b/ext/js/display/display-anki.js @@ -21,6 +21,7 @@ import {AnkiNoteBuilder} from '../data/anki-note-builder.js'; import {AnkiUtil} from '../data/anki-util.js'; import {PopupMenu} from '../dom/popup-menu.js'; import {querySelectorNotNull} from '../dom/query-selector.js'; +import {TemplateRendererProxy} from '../templates/template-renderer-proxy.js'; import {yomitan} from '../yomitan.js'; export class DisplayAnki { @@ -39,7 +40,7 @@ export class DisplayAnki { /** @type {?string} */ this._ankiFieldTemplatesDefault = null; /** @type {AnkiNoteBuilder} */ - this._ankiNoteBuilder = new AnkiNoteBuilder({japaneseUtil}); + this._ankiNoteBuilder = new AnkiNoteBuilder(japaneseUtil, new TemplateRendererProxy()); /** @type {?import('./display-notification.js').DisplayNotification} */ this._errorNotification = null; /** @type {?EventListenerCollection} */ |