status-react/src/status_im/core.cljs

20 lines
773 B
Plaintext
Raw Normal View History

2017-11-14 15:18:15 +00:00
(ns status-im.core
(:require [status-im.utils.error-handler :as error-handler]
[status-im.ui.components.react :as react]
[re-frame.core :as re-frame]
[reagent.core :as reagent]
[status-im.native-module.core :as status]
[taoensso.timbre :as log]
[status-im.utils.config :as config]
[goog.object :as object]))
(when js/goog.DEBUG
(object/set js/console "ignoredYellowBox" #js ["re-frame: overwriting" "Setting a timer"]))
2017-11-14 15:18:15 +00:00
(defn init [app-root]
(log/set-level! config/log-level)
(error-handler/register-exception-handler!)
(status/init-jail)
(.registerComponent react/app-registry "StatusIm" #(reagent/reactify-component app-root))
(re-frame/dispatch-sync [:initialize-app]))