(item, status)
| 107 | } |
| 108 | |
| 109 | function onChangeStatus(item, status) { |
| 110 | container.remove(); |
| 111 | const curPos = ordered.findIndex((e) => e[0] === item); |
| 112 | ordered[curPos][1] = ordered[curPos][1] === status ? SHOW : status; |
| 113 | appendItems(); |
| 114 | } |
| 115 | |
| 116 | YLXSidebarState = Spicetify.Platform.LocalStorageAPI.getItem("ylx-sidebar-state"); |
| 117 | if (YLXSidebarState === 1) document.querySelector(".main-yourLibraryX-collapseButton > button")?.click(); |
no test coverage detected