always send ui:mode
This commit is contained in:
parent
c381b90f39
commit
c1faf0e64d
|
|
@ -135,8 +135,8 @@ app.get("/ws", c => {
|
|||
addWebsocket(ws)
|
||||
send(ws, { type: "commands", data: await commands() })
|
||||
|
||||
const mode = getState("ui:mode")
|
||||
if (mode) send(ws, { type: "ui:mode", data: mode })
|
||||
const mode = getState("ui:mode") || "tall"
|
||||
send(ws, { type: "ui:mode", data: mode })
|
||||
},
|
||||
async onMessage(event, ws) {
|
||||
let data: Message | undefined
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user