mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 01:27:26 +08:00
1 parent
29274345a7
commit
481b21c7ce
1 file changed
-4
@@ -2036,10 +2036,6 @@ async function searchDocument() {
|
||||
const pageCount = state.doc.pageCount;
|
||||
try {
|
||||
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);
|
||||
if (seq !== state.searchSeq || openSeq !== state.openSeq) {
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user