feat: implement kiosk mode functionality and update UI elements accordingly
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user