We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 260567d commit 80e53ffCopy full SHA for 80e53ff
tools/spotify_test.html
@@ -177,10 +177,8 @@
177
})
178
});
179
180
- // If there's a track ID in the URL
181
const trackId = getUrlParameter('track');
182
if (trackId) {
183
- // First select the track via API
184
try {
185
await fetch('https://api.spotify.com/v1/me/player/play', {
186
method: 'PUT',
@@ -192,11 +190,6 @@
192
190
uris: [`spotify:track:${trackId}`]
193
191
194
195
-
196
- // Then trigger the play button after 4 seconds
197
- setTimeout(() => {
198
- pauseResumeButton.click();
199
- }, 4000);
200
} catch (error) {
201
console.error('Error playing track:', error);
202
}
0 commit comments