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

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