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 9ff4a96 commit a093eb7Copy full SHA for a093eb7
tools/spotify_test.html
@@ -153,10 +153,13 @@
153
})
154
}).then(response => {
155
if (response.status === 204) {
156
- const trackId = getUrlParameter('track');
157
- if (trackId) {
158
- playTrackById(trackId, token);
159
- }
+ // Add a small delay to ensure the device is fully registered
+ setTimeout(() => {
+ const trackId = getUrlParameter('track');
+ if (trackId) {
160
+ playTrackById(trackId, token);
161
+ }
162
+ }, 1000);
163
}
164
});
165
0 commit comments