File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -339,17 +339,6 @@ <h3 class="text-lg font-semibold">${track.name}</h3>
339339 } ) ;
340340
341341 playerInstance . addListener ( 'ready' , async ( { device_id } ) => {
342- await fetch ( 'https://api.spotify.com/v1/me/player' , {
343- method : 'PUT' ,
344- headers : {
345- 'Authorization' : `Bearer ${ token } ` ,
346- 'Content-Type' : 'application/json'
347- } ,
348- body : JSON . stringify ( {
349- device_ids : [ device_id ] ,
350- play : true
351- } )
352- } ) ;
353342 const trackId = getUrlParameter ( 'track' ) ;
354343 if ( trackId ) {
355344 await fetch ( `https://api.spotify.com/v1/me/player/play?device_id=${ device_id } ` , {
@@ -380,7 +369,6 @@ <h3 class="text-lg font-semibold">${track.name}</h3>
380369 } ) ;
381370
382371 playerInstance . addListener ( 'player_state_changed' , state => {
383- console . log ( 'player_state_changed' , state ) ;
384372 if ( state ) {
385373 isPlaying = ! state . paused ;
386374 updateButtonIcon ( ) ;
You can’t perform that action at this time.
0 commit comments