Radio starting and stopping

This commit is contained in:
James Barnsley
2016-12-20 19:54:19 +13:00
parent bf3b2bfba1
commit 005e2b58b5
6 changed files with 22 additions and 10 deletions

View File

@ -189,6 +189,16 @@ const PusherMiddleware = (function(){
makeRequest( data )
break
case 'PUSHER_STOP_RADIO':
var data = {
action: 'stop_radio',
seed_artists: [],
seed_genres: [],
seed_tracks: []
}
makeRequest( data )
break
// This action is irrelevant to us, pass it on to the next middleware
default:
return next(action);