()
| 281 | |
| 282 | renderQueuePlaybarButton(); |
| 283 | function renderQueuePlaybarButton() { |
| 284 | if (!playbarButton) { |
| 285 | playbarButton = new Spicetify.Playbar.Button( |
| 286 | "Shuffle+ Queue Tracks", |
| 287 | "enhance", |
| 288 | async () => { |
| 289 | await fetchAndPlay("queue"); |
| 290 | }, |
| 291 | false, |
| 292 | false |
| 293 | ); |
| 294 | } |
| 295 | |
| 296 | if (CONFIG.enableQueueButton) playbarButton.register(); |
| 297 | else playbarButton.deregister(); |
| 298 | } |
| 299 | |
| 300 | async function fetchPlaylistTracks(uri) { |
| 301 | const res = await Spicetify.Platform.PlaylistAPI.getContents(`spotify:playlist:${uri}`, { |
no test coverage detected