(raw)
| 6398 | const win = window; |
| 6399 | if (win[PLAY_STATE_KEY]) return; |
| 6400 | win[PLAY_STATE_KEY] = true; |
| 6401 | const sync = () => { |
| 6402 | const playing = Boolean(win.Spicetify?.Player?.isPlaying?.()); |
| 6403 | document.documentElement.classList.toggle(PLAYING_CLASS, playing); |
| 6404 | }; |
| 6405 | sync(); |
| 6406 | win.Spicetify?.Player?.addEventListener?.("onplaypause", sync); |
| 6407 | setInterval(sync, 1e3); |
| 6408 | } |
| 6409 | function applyCss3() { |
| 6410 | updateStyle(STYLE_ID5, buildCss()); |