1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

enable prod mode for angular

This commit is contained in:
Kyle Spearrin
2018-02-13 17:22:10 -05:00
parent 4d0e46d893
commit efbfd9184e
3 changed files with 19 additions and 0 deletions

7
src/scripts/utils.ts Normal file
View File

@@ -0,0 +1,7 @@
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));
}