Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

localEnvironment.ts

9 lines408 Bytes

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 */
7export function isLocalEnvironmentDisabled(): boolean {
8 return window.desktopBridge?.getLocalEnvironmentEnabled?.() === false;
9}