| 1 | /** |
| 2 | * True when the desktop app runs without its local server. The renderer then |
| 3 | * has no primary environment: it skips primary auth and discovery and only |
| 4 | * connects to saved remote environments. Always false in browsers and on |
| 5 | * desktop builds predating the setting. |
| 6 | */ |
| 7 | export function isLocalEnvironmentDisabled(): boolean { |
| 8 | return window.desktopBridge?.getLocalEnvironmentEnabled?.() === false; |
| 9 | } |