innerHTmL problems. Not synchronous?
This commit is contained in:
@@ -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))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user