aboutsummaryrefslogtreecommitdiff
path: root/ext/fg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-09-08 19:23:32 -0400
committerGitHub <noreply@github.com>2020-09-08 19:23:32 -0400
commit46af4c9da42af5fa3f3e523a56ebf916b593af86 (patch)
treeaf80781a2dec1ddfb3d5db900e0ad0108696ab2a /ext/fg
parentc1b16cebe7744b5d98b8e109bb3235676a79f474 (diff)
Text scanner fixes and refactoring (#788)
* Fix incorrect argument being passed * Clear causeCurrent * Change cause string to a more general input object
Diffstat (limited to 'ext/fg')
-rw-r--r--ext/fg/js/frontend.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js
index 517a9de0..9177f985 100644
--- a/ext/fg/js/frontend.js
+++ b/ext/fg/js/frontend.js
@@ -249,7 +249,7 @@ class Frontend {
await this.updateOptions();
}
- _onSearched({textScanner, type, definitions, sentence, cause, textSource, optionsContext, error}) {
+ _onSearched({textScanner, type, definitions, sentence, input: {cause}, textSource, optionsContext, error}) {
if (error !== null) {
if (yomichan.isExtensionUnloaded) {
if (textSource !== null && this._options.scanning.modifier !== 'none') {