mirror of
https://github.com/wassname/talk.git
synced 2026-08-01 13:00:55 +08:00
Check login after loading config
This commit is contained in:
@@ -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());
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user