MCPcopy Index your code
hub / github.com/spicetify/cli / onLinkClick

Function onLinkClick

Extensions/bookmark.js:450–457  ·  view source on GitHub ↗

* Handle Link click event when item context is a playlist

(info)

Source from the content-addressed store, hash-verified

448 * Handle Link click event when item context is a playlist
449 */
450 async function onLinkClick(info) {
451 if (info.context?.startsWith("/")) {
452 Spicetify.Platform.History.push(info.context);
453 return;
454 }
455 const url = Spicetify.URI.fromString(info.uri).toURLPath(true);
456 Spicetify.Platform.History.push(url);
457 }
458
459 function onPlayClick(info) {
460 let uri = info.uri;

Callers 1

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected