The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 03:37 UTC
| 1 | // Preload installs desktopBridge before web code runs, so module-load detection is reliable. |
| 2 | export const isElectron = typeof window !== "undefined" && window.desktopBridge !== undefined; |
| 3 | |
| 4 | export const isSecretsFeatureEnabled = ["1", "true"].includes( |
| 5 | import.meta.env.T3CODE_FEATURE_SECRETS?.trim().toLowerCase() ?? "", |
| 6 | ); |