0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-13 18:48:37 -05:00

Simplify initialization of main app.

This commit is contained in:
Andrey Antukh 2016-12-19 08:33:19 +01:00
parent 74bcdd2507
commit 768004aed8
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
2 changed files with 2 additions and 7 deletions

View file

@ -8,12 +8,10 @@
(:require [uxbox.store :as st]
[uxbox.main.locales :as lc]
[uxbox.main.ui :as ui]
[uxbox.main.state :refer [initial-state]]
[uxbox.util.storage :refer [storage]]))
[uxbox.main.state :refer [initial-state]]))
(defn ^:export init
[]
(lc/init)
(st/init initial-state)
(ui/init-routes)
(ui/init))

View file

@ -164,12 +164,9 @@
;; --- Main Entry Point
(defn init-routes
[]
(rt/init routes))
(defn init
[]
(rt/init routes))
(mx/mount (app) (dom/get-element "app"))
(mx/mount (lightbox) (dom/get-element "lightbox"))
(mx/mount (loader) (dom/get-element "loader")))