Spotify checkToken before any critical request
This commit is contained in:
@ -143,6 +143,9 @@ const MopidyMiddleware = (function(){
|
||||
// play it
|
||||
store.dispatch( actions.changeTrack( response[0].tlid ) );
|
||||
|
||||
// TODO: perhaps force update of currentTlTrack before we proceed?
|
||||
// this will make the UI feel snappier...
|
||||
|
||||
// add the rest of our uris (if any)
|
||||
action.uris.shift();
|
||||
if( action.uris.length > 0 ){
|
||||
|
||||
@ -20,6 +20,7 @@ export default function reducer(mopidy = {}, action){
|
||||
});
|
||||
|
||||
case 'MOPIDY_HIGHLIGHT_CURRENT_TLTRACK':
|
||||
if( !action.data ) return mopidy;
|
||||
for( var i = 0; i < mopidy.tracks.length; i++ ){
|
||||
if( mopidy.tracks[i].tlid == action.data.tlid ){
|
||||
action.data.track.playing = true;
|
||||
|
||||
Reference in New Issue
Block a user