From 313392210055b5a5b4a9685c5374119dd4000cd2 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Sat, 16 Sep 2017 01:02:19 +0700 Subject: [PATCH] Fix config parsing bug --- client/coral-embed-stream/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/coral-embed-stream/src/index.js b/client/coral-embed-stream/src/index.js index c8d3101ab..841b7b3d0 100644 --- a/client/coral-embed-stream/src/index.js +++ b/client/coral-embed-stream/src/index.js @@ -42,7 +42,7 @@ function preInit({store, pym}) { return new Promise((resolve) => { pym.sendMessage('getConfig'); pym.onMessage('config', (config) => { - store.dispatch(addExternalConfig(config)); + store.dispatch(addExternalConfig(JSON.parse(config))); store.dispatch(checkLogin()); resolve(); });