Debugger; Settings polish up; Album link on track when invalid uri
This commit is contained in:
@ -28,6 +28,14 @@ export function instruct( call, value ){
|
||||
}
|
||||
}
|
||||
|
||||
export function debug( call, value ){
|
||||
return {
|
||||
type: 'MOPIDY_DEBUG',
|
||||
call: call,
|
||||
value: value
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Playback-oriented actions
|
||||
|
||||
@ -161,6 +161,14 @@ const MopidyMiddleware = (function(){
|
||||
instruct( socket, store, action.call, action.value )
|
||||
break;
|
||||
|
||||
// send an instruction to the websocket
|
||||
case 'MOPIDY_DEBUG':
|
||||
instruct( socket, store, action.call, action.value )
|
||||
.then( response => {
|
||||
store.dispatch({ type: 'DEBUG', response: response })
|
||||
})
|
||||
break;
|
||||
|
||||
// send an instruction to the websocket
|
||||
case 'MOPIDY_NEXT':
|
||||
var icon = false
|
||||
|
||||
Reference in New Issue
Block a user