RED-7605: quick fix.
This commit is contained in:
parent
d23816a514
commit
fdd024f65d
@ -317,10 +317,10 @@ export class PdfViewer {
|
||||
const sameWord = [...new Set(uniqueText.map(text => text.toLowerCase()))].length === 1;
|
||||
if (uniqueText.length === 1 && sameWord) {
|
||||
this.searchedWord = uniqueText.join('\n');
|
||||
} else {
|
||||
} else if (!sameWord) {
|
||||
this.searchedWord = this.documentViewer.getSelectedText();
|
||||
}
|
||||
const selected = this.searchedWord ?? uniqueText.join('\n');
|
||||
const selected = this.searchedWord;
|
||||
this.#instance.UI.searchTextFull(selected, this.searchOptions);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user