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

Function addClassname

jsHelper/spicetifyWrapper.js:2837–2846  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

2835 })();
2836
2837 function addClassname(element) {
2838 sibling = document.querySelector(".main-nowPlayingBar-right .main-genericButton-button");
2839 if (!sibling) {
2840 setTimeout(addClassname, 300, element);
2841 return;
2842 }
2843 for (const className of Array.from(sibling.classList)) {
2844 if (!className.startsWith("main-genericButton")) element.classList.add(className);
2845 }
2846 }
2847
2848 const widgetStash = new Set();
2849 let nowPlayingWidget;

Callers 2

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected