mirror of
https://github.com/penpot/penpot.git
synced 2025-03-15 17:21:17 -05:00
🐛 Fix config loading.
This commit is contained in:
parent
e92688f37e
commit
bee543da74
2 changed files with 17 additions and 12 deletions
|
@ -5,20 +5,16 @@
|
|||
;; This Source Code Form is "Incompatible With Secondary Licenses", as
|
||||
;; defined by the Mozilla Public License, v. 2.0.
|
||||
;;
|
||||
;; Copyright (c) 2016-2020 Andrey Antukh <niwi@niwi.nz>
|
||||
;; Copyright (c) 2020 UXBOX Labs SL
|
||||
|
||||
(ns uxbox.config
|
||||
(:require [uxbox.util.object :as obj]))
|
||||
|
||||
(defn- get-current-origin
|
||||
[]
|
||||
(let [location (obj/get goog.global "location")]
|
||||
(obj/get location "origin")))
|
||||
(this-as global
|
||||
(let [config (obj/get global "uxboxConfig")
|
||||
public-url (obj/get config "publicURL" "http://localhost:6060")]
|
||||
(def default-language "en")
|
||||
(def demo-warning (obj/get config "demoWarning" true))
|
||||
(def url public-url)
|
||||
(def default-theme "default")))
|
||||
|
||||
(let [config (obj/get goog.global "uxboxConfig")
|
||||
public-url (obj/get config "publicURL" "http://localhost:6060")]
|
||||
|
||||
(def default-language "en")
|
||||
(def demo-warning (obj/get config "demoWarning" true))
|
||||
(def url public-url)
|
||||
(def default-theme "default"))
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
;; This Source Code Form is subject to the terms of the Mozilla Public
|
||||
;; License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
;;
|
||||
;; This Source Code Form is "Incompatible With Secondary Licenses", as
|
||||
;; defined by the Mozilla Public License, v. 2.0.
|
||||
;;
|
||||
;; Copyright (c) 2020 UXBOX Labs SL
|
||||
|
||||
(ns uxbox.main.data.workspace.common
|
||||
(:require
|
||||
[beicon.core :as rx]
|
||||
|
|
Loading…
Add table
Reference in a new issue