Country/Locale now settable via config (fixes #19); New get_config endpoint for Pusher

This commit is contained in:
James Barnsley
2017-02-06 10:07:32 +13:00
parent f3a409b356
commit 94c947e90e
10 changed files with 53 additions and 17 deletions

View File

@ -13,6 +13,12 @@ const SpotifyMiddleware = (function(){
switch(action.type){
case 'CONFIG':
if (!state.spotify.country || !state.spotify.locale){
store.dispatch( spotifyActions.setConfig(action.data.config) )
}
break
case 'SPOTIFY_CONNECT':
store.dispatch( spotifyActions.getMe() )
break