Share config
This commit is contained in:
@ -90,7 +90,6 @@ const PusherMiddleware = (function(){
|
||||
store.dispatch(spotifyActions.tokenChanged(message.params.spotify_token));
|
||||
break;
|
||||
case 'share_configuration_received':
|
||||
console.log(message);
|
||||
store.dispatch(uiActions.createNotification({
|
||||
type: 'share-configuration-received',
|
||||
configuration: message.params,
|
||||
|
||||
@ -250,16 +250,13 @@ const SnapcastMiddleware = (function(){
|
||||
var command = JSON.parse(action.command);
|
||||
command.crossDomain = true;
|
||||
command.dataType = "jsonp";
|
||||
command.success = function(response){
|
||||
store.dispatch(uiActions.createNotification({type: 'info', content: 'Command sent', description: command.url}));
|
||||
}
|
||||
|
||||
// Actually send the request
|
||||
$.ajax(command);
|
||||
|
||||
$.ajax(command)
|
||||
.then(
|
||||
response => {
|
||||
console.log(response);
|
||||
},
|
||||
(xhr, status, error) => {
|
||||
console.error(error);
|
||||
}
|
||||
);
|
||||
break
|
||||
|
||||
case 'SNAPCAST_SET_CLIENT_GROUP':
|
||||
|
||||
Reference in New Issue
Block a user