mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 17:27:08 +08:00
1 parent
2ae89e54b4
commit
786b1a41c2
14 files changed
+250
-97
No files matched your search
@@ -4047,6 +4047,10 @@ async function openDocument(options = {}) {
|
||||
|
||||
async function loadDocumentDetails(openSeq) {
|
||||
try {
|
||||
const details = await callWASM("ofdgoDocumentInfo");
|
||||
if (openSeq !== state.openSeq) return;
|
||||
Object.assign(state.doc, details, { detailsPending: false, detailsError: "" });
|
||||
renderMeta();
|
||||
while (openSeq === state.openSeq) {
|
||||
await waitForPaint();
|
||||
if (openSeq !== state.openSeq) return;
|
||||
|
||||
Reference in new issue
Block a user