(js (= x y)) does noet work, needs to be (js (== x y))
This commit is contained in:
+4
-4
@@ -822,8 +822,8 @@
|
||||
(webview-run-js wv
|
||||
(with-id->el id el
|
||||
(if (or
|
||||
(= (js-dot el type) "checkbox")
|
||||
(= (js-dot el type) "radio"))
|
||||
(== (js-dot el type) "checkbox")
|
||||
(== (js-dot el type) "radio"))
|
||||
(set! (js-dot el checked)
|
||||
(eval
|
||||
(if (eq? val #f) #f #t)))
|
||||
@@ -869,8 +869,8 @@
|
||||
(-> wv-win? symbol? (or/c string? boolean?))
|
||||
(let ((v (webview-call-js wv
|
||||
(with-id->el id el
|
||||
(if (or (= (js-dot el type) "checkbox")
|
||||
(= (js-dot el type) "radio"))
|
||||
(if (or (== (js-dot el type) "checkbox")
|
||||
(== (js-dot el type) "radio"))
|
||||
(return (js-dot el checked))
|
||||
(return (js-dot el value)))))))
|
||||
;(with-id id el
|
||||
|
||||
Reference in New Issue
Block a user