Skip to content
Source
Sign inSign up

env.ts

6 lines326 Bytes

1// Preload installs desktopBridge before web code runs, so module-load detection is reliable.
2export const isElectron = typeof window !== "undefined" && window.desktopBridge !== undefined;
3​
4export const isSecretsFeatureEnabled = ["1", "true"].includes(
5 import.meta.env.T3CODE_FEATURE_SECRETS?.trim().toLowerCase() ?? "",
6);