(defn
check-version
[]
(.send
XhrIo
api-url
(fn
[e]
(when
(and
(.isSuccess (.-target e))
(->>
(.. e -target getResponseText)
(.parse js/JSON)
((fn* [p1__18667#] (gobj/get p1__18667# "latest_release")))
(not= version)))
(swap! *state assoc :update? true)))
"GET"))