Precursor to scroll position history; Restoring Genius API; Settings services

This commit is contained in:
James Barnsley
2018-03-31 20:36:36 +13:00
parent 2b186e9ef7
commit 9ecddcc1b5
12 changed files with 26406 additions and 27319 deletions

View File

@ -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));

View File

@ -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;