forked from SpoTUI/SpoTUI
refactor(theme): refactor theme.js
- Added runPlayerAction wrapper function to eliminate duplicate Spicetify player command try/catches. - Added runGlitchByDist helper function to dry up distance calculation logic across glitch animations (burstGlitch, pulseGlitch, implosionGlitch, fuzzWaveGlitch).
This commit is contained in: