mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 22:21:43 +02:00
✨ Improve globals handling on fronted application.
This commit is contained in:
parent
b0749b5595
commit
341bb8495a
5 changed files with 49 additions and 48 deletions
|
@ -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
|
||||
[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue