Improve globals handling on fronted application.

This commit is contained in:
Andrey Antukh 2021-01-29 13:00:03 +01:00 committed by Alonso Torres
parent b0749b5595
commit 341bb8495a
5 changed files with 49 additions and 48 deletions

View file

@ -9,6 +9,7 @@
(ns app.main
(:require
[app.config :as cfg]
[app.common.uuid :as uuid]
[app.common.spec :as us]
[app.main.repo :as rp]
@ -86,12 +87,10 @@
(defn ^:export init
[]
(let [translations (obj/get js/window "appTranslations")
themes (obj/get js/window "appThemes")]
(i18n/init! translations)
(theme/init! themes)
(st/init)
(init-ui)))
(i18n/init! cfg/translations)
(theme/init! cfg/themes)
(st/init)
(init-ui))
(defn reinit
[]