Co-authored-by: Claude Code <[email protected]> Co-authored-by: Julius Marminge <[email protected]>
10 lines
408 B
TypeScript
10 lines
408 B
TypeScript
/**
|
|
* True when the desktop app runs without its local server. The renderer then
|
|
* has no primary environment: it skips primary auth and discovery and only
|
|
* connects to saved remote environments. Always false in browsers and on
|
|
* desktop builds predating the setting.
|
|
*/
|
|
export function isLocalEnvironmentDisabled(): boolean {
|
|
return window.desktopBridge?.getLocalEnvironmentEnabled?.() === false;
|
|
}
|