mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 17:27:08 +08:00
1 parent
29274345a7
commit
481b21c7ce
1 file changed
-4
@@ -2036,10 +2036,6 @@ async function searchDocument() {
|
|||||||
const pageCount = state.doc.pageCount;
|
const pageCount = state.doc.pageCount;
|
||||||
try {
|
try {
|
||||||
for (let page = 0; page < pageCount; page += 1) {
|
for (let page = 0; page < pageCount; page += 1) {
|
||||||
await waitForPaint();
|
|
||||||
if (seq !== state.searchSeq || openSeq !== state.openSeq) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const matches = await callWASM("ofdgoSearchPage", page, query);
|
const matches = await callWASM("ofdgoSearchPage", page, query);
|
||||||
if (seq !== state.searchSeq || openSeq !== state.openSeq) {
|
if (seq !== state.searchSeq || openSeq !== state.openSeq) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in new issue
Block a user