diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2019-08-03 15:50:49 +0300 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2019-08-03 15:50:49 +0300 |
commit | ec1441434f35ad7ac2d1feb4eae1cee12bf00609 (patch) | |
tree | 51e972e8a74f9342f2c627a9eb2a2d24e59c33d1 /ext/mixed/js/display.js | |
parent | 1a37342aa0168c931898f6eefa94690b1fc30d2d (diff) |
allow multi level context
Diffstat (limited to 'ext/mixed/js/display.js')
-rw-r--r-- | ext/mixed/js/display.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js index 0067d457..9a178a1f 100644 --- a/ext/mixed/js/display.js +++ b/ext/mixed/js/display.js @@ -62,6 +62,7 @@ class Display { if (this.context) { context.sentence = this.context.sentence; context.url = this.context.url; + context.source.source = this.context.source; } const kanjiDefs = await apiKanjiFind(link.text()); @@ -100,6 +101,7 @@ class Display { if (this.context) { context.sentence = sentence; context.url = this.context.url; + context.source.source = this.context.source; } this.termsShow(definitions, this.options, context); @@ -405,7 +407,8 @@ class Display { const context = { url: this.context.source.url, sentence: this.context.source.sentence, - index: this.context.source.index + index: this.context.source.index, + source: this.context.source.source }; this.termsShow(this.context.source.definitions, this.options, context); |