diff --git a/project.clj b/project.clj index 54e3a0f..25c1b57 100644 --- a/project.clj +++ b/project.clj @@ -40,7 +40,8 @@ [luminus-immutant "0.2.3"] [clj.qrgen "0.4.0"] [digest "1.4.5"] - [tentacles "0.5.1"]] + [tentacles "0.5.1"] + [re-frisk "0.3.2"]] :min-lein-version "2.0.0" :source-paths ["src/clj" "src/cljc"] diff --git a/src/cljs/commiteth/core.cljs b/src/cljs/commiteth/core.cljs index e463a10..55f799d 100644 --- a/src/cljs/commiteth/core.cljs +++ b/src/cljs/commiteth/core.cljs @@ -13,7 +13,9 @@ [commiteth.issues :refer [issues-page]] [commiteth.common :refer [input checkbox]] [commiteth.subscriptions :refer [user-address-path]] - [clojure.set :refer [rename-keys]]) + [commiteth.config :as config] + [clojure.set :refer [rename-keys]] + [re-frisk.core :refer [enable-re-frisk!]]) (:import goog.History)) (defn login-link [] @@ -177,6 +179,8 @@ (defn init! [] (rf/dispatch-sync [:initialize-db]) + (when config/debug? + (enable-re-frisk!)) (load-interceptors!) (hook-browser-navigation!) (load-data)