()
| 31 | } |
| 32 | |
| 33 | export const getServerSettings = (): DesktopServerSettings => ({ |
| 34 | // Read defensively: older settings.json files carried `requireAuth`/`password` |
| 35 | // fields that no longer exist. Only `port` survives. |
| 36 | port: store.get("server")?.port ?? DEFAULT_SERVER_SETTINGS.port, |
| 37 | }); |
| 38 | |
| 39 | export const updateServerSettings = ( |
| 40 | patch: Partial<DesktopServerSettings>, |
no test coverage detected