mirror of
https://github.com/bitwarden/desktop
synced 2025-12-20 18:23:14 +00:00
12 lines
366 B
TypeScript
12 lines
366 B
TypeScript
export function isDev() {
|
|
// ref: https://github.com/sindresorhus/electron-is-dev
|
|
if ('ELECTRON_IS_DEV' in process.env) {
|
|
return parseInt(process.env.ELECTRON_IS_DEV, 10) === 1;
|
|
}
|
|
return (process.defaultApp || /node_modules[\\/]electron[\\/]/.test(process.execPath));
|
|
}
|
|
|
|
export function isAppImage() {
|
|
return 'APPIMAGE' in process.env;
|
|
}
|