summaryrefslogtreecommitdiff
path: root/ext/js/display/search-display-controller.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-09-26 22:14:52 -0400
committerGitHub <noreply@github.com>2021-09-26 22:14:52 -0400
commit729abbf5616f93a641bb6b68593e524b352b2a19 (patch)
tree55e417658e86d4412bd9fad4f5457694daa2136e /ext/js/display/search-display-controller.js
parentba267a545c489e0dfc8cd962f47d8e70c6f6f604 (diff)
Remove display query post process (#1967)
* Remove search query post-processing * Remove _rawQuery, as it is redundant with _query
Diffstat (limited to 'ext/js/display/search-display-controller.js')
-rw-r--r--ext/js/display/search-display-controller.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/ext/js/display/search-display-controller.js b/ext/js/display/search-display-controller.js
index 81124bbb..489a9fa3 100644
--- a/ext/js/display/search-display-controller.js
+++ b/ext/js/display/search-display-controller.js
@@ -72,7 +72,6 @@ class SearchDisplayController {
this._display.autoPlayAudioDelay = 0;
this._display.queryParserVisible = true;
this._display.setHistorySettings({useBrowserHistory: true});
- this._display.setQueryPostProcessor(this._postProcessQuery.bind(this));
this._searchButton.addEventListener('click', this._onSearch.bind(this), false);
this._wanakanaEnableCheckbox.addEventListener('change', this._onWanakanaEnableChange.bind(this));
@@ -409,17 +408,6 @@ class SearchDisplayController {
}
}
- _postProcessQuery(query) {
- if (this._wanakanaEnabled) {
- try {
- query = this._japaneseUtil.convertToKana(query);
- } catch (e) {
- // NOP
- }
- }
- return query;
- }
-
_registerMessageHandlers(handlers) {
for (const [name, handlerInfo] of handlers) {
this._messageHandlers.set(name, handlerInfo);