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

Function waitForWidgetMounted

jsHelper/spicetifyWrapper.js:2919–2926  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2917 }
2918
2919 function waitForWidgetMounted() {
2920 nowPlayingWidget = document.querySelector(".main-nowPlayingWidget-nowPlaying");
2921 if (!nowPlayingWidget) {
2922 setTimeout(waitForWidgetMounted, 300);
2923 return;
2924 }
2925 nowPlayingWidget.append(...widgetStash);
2926 }
2927
2928 (function attachObserver() {
2929 const leftPlayer = document.querySelector(".main-nowPlayingBar-left");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected