Skip to content

Commit

Permalink
fixed call to JSON.parse()
Browse files Browse the repository at this point in the history
  • Loading branch information
dvcrn committed Nov 10, 2015
1 parent 6823da8 commit 3f5af31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cljs/markright/main.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
(let [data (atom {:data (str "")})]
(.on response "data" #(swap! data assoc :data (str (@data :data) %)))
(.on response "end" (fn []
(let [remote-package (JSON/parse (@data :data))
(let [remote-package (.parse js/JSON (@data :data))
latest-version (.-version remote-package)]
(if (is-newer? latest-version (.getVersion app))
(if (= (update-dialog @*win* (.getVersion app) latest-version) 1)
Expand Down

0 comments on commit 3f5af31

Please sign in to comment.