From d856b9aae345b481bf2da7cb7f7efbe79fecc8af Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 30 Apr 2020 17:14:34 +0200 Subject: [PATCH] :sparkles: Make config module worker safe. --- frontend/src/uxbox/config.cljs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/uxbox/config.cljs b/frontend/src/uxbox/config.cljs index 3c867bcda..5df7ff139 100644 --- a/frontend/src/uxbox/config.cljs +++ b/frontend/src/uxbox/config.cljs @@ -8,17 +8,17 @@ ;; Copyright (c) 2016-2020 Andrey Antukh (ns uxbox.config - (:require [goog.object :as gobj])) + (:require [uxbox.util.object :as obj])) (defn- get-current-origin [] - (let [location (gobj/get goog.global "location")] - (gobj/get location "origin"))) + (let [location (obj/get goog.global "location")] + (obj/get location "origin"))) -(let [config (gobj/get goog.global "uxboxConfig") - public-url (gobj/get config "publicURL" "http://localhost:6060")] +(let [config (obj/get goog.global "uxboxConfig") + public-url (obj/get config "publicURL" "http://localhost:6060")] (def default-language "en") - (def demo-warning (gobj/get config "demoWarning" true)) + (def demo-warning (obj/get config "demoWarning" true)) (def url public-url) (def default-theme "default"))