MCPcopy
hub / github.com/spicetify/cli / renderQueuePlaybarButton

Function renderQueuePlaybarButton

Extensions/shuffle+.js:283–298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}`, {

Callers 2

settingsPageFunction · 0.85
shuffle+.jsFile · 0.85

Calls 3

fetchAndPlayFunction · 0.85
registerMethod · 0.45
deregisterMethod · 0.45

Tested by

no test coverage detected