Snapcast config via pusher
This commit is contained in:
@ -479,12 +479,12 @@ const PusherMiddleware = (function(){
|
||||
locale: (action.config.locale ? action.config.locale : null),
|
||||
country: (action.config.country ? action.config.country : null),
|
||||
authorization_url: (action.config.spotify_authorization_url ? action.config.spotify_authorization_url : null)
|
||||
}))
|
||||
}));
|
||||
store.dispatch(lastfmActions.set({
|
||||
authorization_url: (action.config.lastfm_authorization_url ? action.config.lastfm_authorization_url : null)
|
||||
}))
|
||||
}));
|
||||
|
||||
next(action )
|
||||
next(action);
|
||||
break
|
||||
|
||||
case 'PUSHER_DEBUG':
|
||||
|
||||
@ -51,6 +51,9 @@ export default function reducer(pusher = {}, action){
|
||||
case 'PUSHER_START_UPGRADE':
|
||||
return Object.assign({}, pusher, { upgrading: true });
|
||||
|
||||
case 'PUSHER_CONFIG':
|
||||
return Object.assign({}, pusher, { config: action.config });
|
||||
|
||||
case 'PUSHER_SNAPCAST':
|
||||
return Object.assign({}, pusher, { snapcast_clients: action.snapcast_clients, snapcast_groups: action.snapcast_groups });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user