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