feat: implement kiosk mode functionality and update UI elements accordingly

This commit is contained in:
sebseb7
2026-04-11 22:58:25 +02:00
parent b5256d6597
commit e699a8003f
4 changed files with 28 additions and 8 deletions

View File

@@ -153,6 +153,12 @@ class SocketManager {
auth: this._buildSocketAuth()
});
this._socket.on('kiosk', () => {
window.growheadskiosk = true;
window.dispatchEvent(new Event('growheadskiosk-change'));
console.warn('Kiosk mode enabled via socket event');
});
// Always refresh auth data before reconnect attempts.
if (this._socket.io && this._socket.io.on) {
this._socket.io.on('reconnect_attempt', () => {