innerHTmL problems. Not synchronous?

This commit is contained in:
2026-04-15 23:08:45 +02:00
parent e19afc324a
commit b7c0ea2c1c
2 changed files with 3 additions and 3 deletions

View File

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