Files
hitstar/public/js/state.js
Elmar Kresse 17faca1f46
All checks were successful
Build and Push Docker Image / docker (push) Successful in 10s
feat: added playlist option
2025-10-12 15:32:53 +02:00

16 lines
295 B
JavaScript

export const state = {
playerId: (() => {
try {
return localStorage.getItem('playerId') || null;
} catch {
return null;
}
})(),
room: null,
lastTrack: null,
revealed: false,
pendingReady: null,
isBuffering: false,
playlists: [], // Available playlists
};