Commit 7d14d23b authored by Patricio Bruna's avatar Patricio Bruna

Merge branch 'enableConfigByParse' of github.com:ZBoxApp/manager-react into enableConfigByParse

parents 05d9d1fa d512d8ee
...@@ -45,14 +45,15 @@ const notFoundParams = { ...@@ -45,14 +45,15 @@ const notFoundParams = {
function preRenderSetup(callwhendone) { function preRenderSetup(callwhendone) {
const d1 = Client.getClientConfig( const d1 = Client.getClientConfig(
(data) => { (data) => {
const config = data.result || data;
if (!data) { if (!config) {
return; return;
} }
global.window.manager_config = data; global.window.manager_config = config;
if (data.debug) { if (config.debug) {
global.window.Client = Client; global.window.Client = Client;
global.window.Utils = Utils; global.window.Utils = Utils;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment