aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
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/bg/js
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/bg/js')
-rw-r--r--ext/bg/js/query-parser.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/query-parser.js b/ext/bg/js/query-parser.js
index a2a04606..dc3cc581 100644
--- a/ext/bg/js/query-parser.js
+++ b/ext/bg/js/query-parser.js
@@ -79,7 +79,7 @@ class QueryParser extends EventDispatcher {
// Private
- _onSearched({type, definitions, sentence, cause, textSource, optionsContext, error}) {
+ _onSearched({type, definitions, sentence, input, textSource, optionsContext, error}) {
if (error !== null) {
yomichan.logError(error);
return;
@@ -90,7 +90,7 @@ class QueryParser extends EventDispatcher {
type,
definitions,
sentence,
- cause,
+ input,
textSource,
optionsContext
});