Files
t3code/apps/web/src/localEnvironment.ts
T
2026-09-13 22:59:47 -07:00

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;
}