Wait for mopidy to load before connecting spotify
This commit is contained in:
@ -23,10 +23,6 @@ const CoreMiddleware = (function(){
|
||||
store.dispatch(pusherActions.connect())
|
||||
store.dispatch(lastfmActions.connect())
|
||||
|
||||
if (store.getState().spotify.enabled){
|
||||
store.dispatch(spotifyActions.connect())
|
||||
}
|
||||
|
||||
next(action)
|
||||
break
|
||||
|
||||
|
||||
@ -239,6 +239,7 @@ const MopidyMiddleware = (function(){
|
||||
enabled: true
|
||||
}
|
||||
})
|
||||
store.dispatch(spotifyActions.connect());
|
||||
}
|
||||
|
||||
// If we haven't customised our search schemes, add all to search
|
||||
|
||||
Reference in New Issue
Block a user