Skip to content

Commit

Permalink
Merge branch 'feature/console-log'
Browse files Browse the repository at this point in the history
  • Loading branch information
awkay committed Apr 22, 2020
2 parents 063e4a5 + c8246c9 commit 3373728
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/electron/fulcro/inspect/electron/renderer/main.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,15 @@
(if (= -1 (version/compare client-version version/last-inspect-version))
(notify-stale-app)))

:fulcro.inspect.client/console-log
(let [{:keys [log log-js warn error]} data]
(cond
log (js/console.log log)
log-js (js/console.log (clj->js log-js))
warn (js/console.warn warn)
error (js/console.error error))
true)

(js/console.log "Unknown remote message:" type)))))

(defn handle-local-message [{:keys [responses*]} event]
Expand Down

0 comments on commit 3373728

Please sign in to comment.