aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/frontend.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-24 20:02:15 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-28 17:03:42 -0400
commit1f0a434e965aabad6b10bff4970a8c44a61961be (patch)
tree23e8eff2e5f76c8f9b26eff2bbc45565af08982e /ext/fg/js/frontend.js
parentdcb6f68826bd64d6cb41d2d7a0d5da1a58da9a1b (diff)
Remove unused vars
Diffstat (limited to 'ext/fg/js/frontend.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);
}
}