diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-12-27 17:42:36 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-01-16 22:39:26 -0500 |
commit | dbbcfa5739d10a6e45eb6e8b964e6a576431ff20 (patch) | |
tree | 6f80819e1776207b5bd958634391dbde1db06253 /ext/mixed/js/display.js | |
parent | c53947a94acdcadf108447e1b559af48c407f52b (diff) |
Only use Display.setContent
Diffstat (limited to 'ext/mixed/js/display.js')
-rw-r--r-- | ext/mixed/js/display.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js index f5b2225d..cc5bc95f 100644 --- a/ext/mixed/js/display.js +++ b/ext/mixed/js/display.js @@ -77,7 +77,7 @@ class Display { }; const definitions = await apiKanjiFind(link.textContent, this.getOptionsContext()); - this.setContentKanji(definitions, context); + this.setContent('kanji', {definitions, context}); } catch (error) { this.onError(error); } @@ -131,7 +131,7 @@ class Display { }); } - this.setContentTerms(definitions, context); + this.setContent('terms', {definitions, context}); if (selectText) { textSource.select(); |