always send ui:mode

This commit is contained in:
Chris Wanstrath 2025-10-02 13:08:39 -07:00
parent c381b90f39
commit c1faf0e64d

View File

@ -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