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))
|
||||
)
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
" let a = (el === null) ? -1 : el.getAttribute('type');\n"
|
||||
" if (a == -1) {\n"
|
||||
" return a;\n"
|
||||
" else { \n"
|
||||
" } else { \n"
|
||||
" if (a === null) {\n"
|
||||
" return false;\n"
|
||||
" } else {\n"
|
||||
|
||||
Reference in New Issue
Block a user