solving bug in webview-get-style
This commit is contained in:
+4
-4
@@ -1028,14 +1028,14 @@
|
||||
(let* ((js-code (with-selector sel
|
||||
(λ (id el)
|
||||
(let ((cl (eval cl))
|
||||
(r (make-hash)))
|
||||
(r '()))
|
||||
(send cl forEach
|
||||
(λ (st)
|
||||
(let ((stl (send window getComputedStyle el)))
|
||||
(set! (js-ref r st) (js-ref stl st)))))
|
||||
(make-hash (list
|
||||
(list 'id id)
|
||||
(list 'style r)))))))
|
||||
(list (list 'id id)
|
||||
(list 'style r))))
|
||||
))
|
||||
(r (webview-call-js wv js-code))
|
||||
)
|
||||
; (format
|
||||
|
||||
Reference in New Issue
Block a user