mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-28 18:40:34 -05:00
19 lines
437 B
TypeScript
19 lines
437 B
TypeScript
export function isPreviewEnvironment() {
|
|
return String(process.env.REACT_APP_NETLIFY) === 'true';
|
|
}
|
|
|
|
export function isDevelopmentEnvironment() {
|
|
return process.env.NODE_ENV === 'development';
|
|
}
|
|
|
|
export function isNonProductionEnvironment() {
|
|
return isPreviewEnvironment() || isDevelopmentEnvironment();
|
|
}
|
|
|
|
export function isElectron() {
|
|
if (navigator.userAgent.indexOf('Electron') >= 0) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|