summaryrefslogtreecommitdiff
path: root/ext/fg/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg/js')
-rw-r--r--ext/fg/js/frontend.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js
index 5e2ef529..957f57c9 100644
--- a/ext/fg/js/frontend.js
+++ b/ext/fg/js/frontend.js
@@ -212,7 +212,7 @@ class Frontend {
}
}
- onAfterSearch(newRange, cause, searched, success) {
+ onAfterSearch(newRange, cause) {
if (cause === 'mouse') {
return;
}
@@ -335,16 +335,12 @@ class Frontend {
async searchSource(textSource, cause) {
let hideResults = false;
- let searched = false;
- let success = false;
try {
if (!this.textSourceLast || !this.textSourceLast.equals(textSource)) {
- searched = true;
this.pendingLookup = true;
const focus = (cause === 'mouse');
hideResults = !await this.searchTerms(textSource, focus) && !await this.searchKanji(textSource, focus);
- success = true;
}
} catch (e) {
if (window.yomichan_orphaned) {
@@ -364,7 +360,7 @@ class Frontend {
}
this.pendingLookup = false;
- this.onAfterSearch(this.textSourceLast, cause, searched, success);
+ this.onAfterSearch(this.textSourceLast, cause);
}
}