Precursor to scroll position history; Restoring Genius API; Settings services
This commit is contained in:
@ -37,7 +37,7 @@ const sendRequest = (dispatch, getState, endpoint) => {
|
||||
$.ajax(config).then(
|
||||
response => {
|
||||
dispatch(uiActions.stopLoading(loader_key));
|
||||
resolve(response.response);
|
||||
resolve(response.result);
|
||||
},
|
||||
(xhr, status, error) => {
|
||||
dispatch(uiActions.stopLoading(loader_key));
|
||||
|
||||
@ -78,14 +78,10 @@ const localstorageMiddleware = (function(){
|
||||
);
|
||||
break;
|
||||
|
||||
case 'SPOTIFY_SET_CONFIG':
|
||||
case 'SPOTIFY_SET':
|
||||
helpers.setStorage(
|
||||
'spotify',
|
||||
{
|
||||
authentication_provider: action.config.authentication_provider,
|
||||
country: action.config.country,
|
||||
locale: action.config.locale
|
||||
}
|
||||
action.data
|
||||
);
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user