solving bug in webview-get-style
This commit is contained in:
+4
-4
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user