Files
hitstar/public/js/state.js
Elmar Kresse 24c8c41f1e
All checks were successful
Build and Push Docker Image / docker (push) Successful in 9s
feat: update playerId handling and improve room rendering logic
2025-09-05 11:51:38 +02:00

15 lines
255 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,
};