()
| 21 | } |
| 22 | |
| 23 | export const getServerSettings = (): DesktopServerSettings => ({ |
| 24 | // Read defensively: older settings.json files carried `requireAuth`/`password` |
| 25 | // fields that no longer exist. Only `port` survives. |
| 26 | port: store.get("server")?.port ?? DEFAULT_SERVER_SETTINGS.port, |
| 27 | }); |
| 28 | |
| 29 | export const updateServerSettings = ( |
| 30 | patch: Partial<DesktopServerSettings>, |
no test coverage detected