Revamp of settings to contain more granular control of services

This commit is contained in:
James Barnsley
2017-08-04 09:19:19 +12:00
parent 123fe51289
commit c34c187007
17 changed files with 741 additions and 621 deletions

View File

@ -328,6 +328,16 @@ const PusherMiddleware = (function(){
next( action )
break
case 'PUSHER_CONFIG':
store.dispatch(spotifyActions.setConfig({
locale: (action.config.locale ? action.config.locale : null),
country: (action.config.country ? action.config.country : null),
authorization_url: (action.config.authorization_url ? action.config.authorization_url : null),
backend_username: (action.config.backend_username ? action.config.backend_username : null)
}))
next( action )
break
case 'PUSHER_DEBUG':
request(store, action.message.method, action.message.data )
.then(