some more updates

This commit is contained in:
janis
2023-10-31 17:35:54 +01:00
parent 1dbc816382
commit c06a82b8ca
3 changed files with 25 additions and 8 deletions

View File

@@ -156,6 +156,10 @@ export default {
if ( autoplay ) {
this.control( 'play' );
this.isPlaying = true;
this.sendUpdate( 'isPLaying' );
this.sendUpdate( 'playingSong' );
this.sendUpdate( 'songQueue' );
this.sendUpdate( 'pos' );
}
const minuteCount = Math.floor( this.playingSong.duration / 60 );
this.durationBeautified = minuteCount + ':';
@@ -201,7 +205,7 @@ export default {
},
};
fetch( '/statusUpdate', fetchOptions ).then( res => {
console.log( res );
} );
},
control( action ) {