From c8246c987447537e961951054861518b654cf1bd Mon Sep 17 00:00:00 2001 From: Anthony D'Ambrosio Date: Tue, 7 Apr 2020 16:20:19 -0700 Subject: [PATCH] adding :fulcro.inspect.client/console-log as a message we now recognize and perform --- src/electron/fulcro/inspect/electron/renderer/main.cljs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/electron/fulcro/inspect/electron/renderer/main.cljs b/src/electron/fulcro/inspect/electron/renderer/main.cljs index ca1c7b1..4f96384 100644 --- a/src/electron/fulcro/inspect/electron/renderer/main.cljs +++ b/src/electron/fulcro/inspect/electron/renderer/main.cljs @@ -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]