Remove unused vars
This commit is contained in:
parent
dcb6f68826
commit
1f0a434e96
@ -212,7 +212,7 @@ class Frontend {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onAfterSearch(newRange, cause, searched, success) {
|
onAfterSearch(newRange, cause) {
|
||||||
if (cause === 'mouse') {
|
if (cause === 'mouse') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -335,16 +335,12 @@ class Frontend {
|
|||||||
|
|
||||||
async searchSource(textSource, cause) {
|
async searchSource(textSource, cause) {
|
||||||
let hideResults = false;
|
let hideResults = false;
|
||||||
let searched = false;
|
|
||||||
let success = false;
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (!this.textSourceLast || !this.textSourceLast.equals(textSource)) {
|
if (!this.textSourceLast || !this.textSourceLast.equals(textSource)) {
|
||||||
searched = true;
|
|
||||||
this.pendingLookup = true;
|
this.pendingLookup = true;
|
||||||
const focus = (cause === 'mouse');
|
const focus = (cause === 'mouse');
|
||||||
hideResults = !await this.searchTerms(textSource, focus) && !await this.searchKanji(textSource, focus);
|
hideResults = !await this.searchTerms(textSource, focus) && !await this.searchKanji(textSource, focus);
|
||||||
success = true;
|
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (window.yomichan_orphaned) {
|
if (window.yomichan_orphaned) {
|
||||||
@ -364,7 +360,7 @@ class Frontend {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.pendingLookup = false;
|
this.pendingLookup = false;
|
||||||
this.onAfterSearch(this.textSourceLast, cause, searched, success);
|
this.onAfterSearch(this.textSourceLast, cause);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user