Skip to content

Commit

Permalink
Update searchJumper.user.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hoothin committed Oct 15, 2024
1 parent b57369e commit 2227aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion searchJumper.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4383,12 +4383,12 @@
} else this.splitSep = "◎";
this.curWordIndex = 0;
}
this.searchJumperInPageInput.value = "";
let targetWords = this.anylizeInPageWords(words, this.initHighlight);
if (!targetWords || targetWords.length == 0) return wordSpans;
if (this.lockWords) {
this.lockWords += (this.lockWords.indexOf(this.splitSep) === this.lockWords.length - this.splitSep.length ? "" : this.splitSep) + words;
} else this.lockWords = words;
this.searchJumperInPageInput.value = "";
if (!this.splitSep) {
this.searchInPageLockWords.innerHTML = createHTML();
this.highlight("");
Expand Down

0 comments on commit 2227aaf

Please sign in to comment.