innerHTmL problems. Not synchronous?

This commit is contained in:
2026-04-15 20:39:22 +02:00
parent 977f25d997
commit ef91a15cb7
2 changed files with 36 additions and 27 deletions

View File

@@ -745,7 +745,8 @@
(if (string? html)
(let ((r (webview-call-js wv
(with-id id el
("el.innerHTML = '~a'; return true;" (esc-quote html))))))
("el.innerHTML = '~a';
await new Promise(resolve => setTimeout(resolve, 0)); return true;" (esc-quote html))))))
(if r 'oke 'failed))
(webview-set-innerHTML! wv id (xexpr->string html))
)