From 46af4c9da42af5fa3f3e523a56ebf916b593af86 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Tue, 8 Sep 2020 19:23:32 -0400 Subject: Text scanner fixes and refactoring (#788) * Fix incorrect argument being passed * Clear causeCurrent * Change cause string to a more general input object --- ext/bg/js/query-parser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/bg') 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 }); -- cgit v1.2.3