Trying to play once added

This commit is contained in:
James Barnsley
2016-10-19 14:09:34 +13:00
parent 51bf248ac9
commit 9e2b5aac3a
11 changed files with 120 additions and 32 deletions

View File

@ -128,6 +128,13 @@ const MopidyMiddleware = (function(){
instruct( socket, store, action.call, action.value )
break;
case 'MOPIDY_PLAY_TRACKS':
var callback = function(){
store.dispatch({ type: 'MOPIDY_TEST', model: 'yeah', data: {} })
}
instruct( socket, store, action.call, action.value, callback )
break;
// This action is irrelevant to us, pass it on to the next middleware
default:
return next(action);