mirror of
https://github.com/wassname/talk.git
synced 2026-07-06 02:01:01 +08:00
Merge pull request #957 from coralproject/fix-config
Fix config parsing bug
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user