()
| 147 | } |
| 148 | |
| 149 | function removeInteraction() { |
| 150 | hiddenList.classList.add("hidden-visually"); |
| 151 | container.remove(); |
| 152 | for (const a of ordered) { |
| 153 | a[0].onmouseover = undefined; |
| 154 | } |
| 155 | if (YLXSidebarState === 1) document.querySelector(".main-yourLibraryX-collapseButton > button")?.click(); |
| 156 | else |
| 157 | document.documentElement.style.setProperty( |
| 158 | "--nav-bar-width", |
| 159 | `${Spicetify.Platform.LocalStorageAPI.getItem( |
| 160 | YLXSidebarState === 2 ? "ylx-expanded-state-nav-bar-width" : "ylx-default-state-nav-bar-width" |
| 161 | )}px` |
| 162 | ); |
| 163 | writeStorage(); |
| 164 | } |
| 165 | |
| 166 | (async () => { |
| 167 | await new Promise((res) => Spicetify.Events.webpackLoaded.on(res)); |
no test coverage detected