Check login after loading config

This commit is contained in:
Chi Vinh Le
2017-06-05 17:51:06 +07:00
parent 7c145bbb3c
commit a9796d47cd
+1 -2
View File
@@ -20,12 +20,11 @@ injectReducers(reducers);
// Don't run this in the popup.
if (!window.opener) {
store.dispatch(checkLogin());
pym.sendMessage('getConfig');
pym.onMessage('config', (config) => {
store.dispatch(addExternalConfig(JSON.parse(config)));
store.dispatch(checkLogin());
});
}