solving bug in webview-get-style

This commit is contained in:
2026-07-30 11:53:06 +02:00
parent 39b6e1adf5
commit c02fe6ee99
+4 -4
View File
@@ -1028,14 +1028,14 @@
(let* ((js-code (with-selector sel (let* ((js-code (with-selector sel
(λ (id el) (λ (id el)
(let ((cl (eval cl)) (let ((cl (eval cl))
(r (make-hash))) (r '()))
(send cl forEach (send cl forEach
(λ (st) (λ (st)
(let ((stl (send window getComputedStyle el))) (let ((stl (send window getComputedStyle el)))
(set! (js-ref r st) (js-ref stl st))))) (set! (js-ref r st) (js-ref stl st)))))
(make-hash (list (list (list 'id id)
(list 'id id) (list 'style r))))
(list 'style r))))))) ))
(r (webview-call-js wv js-code)) (r (webview-call-js wv js-code))
) )
; (format ; (format