mirror of
https://github.com/bitwarden/browser
synced 2026-02-09 13:10:17 +00:00
Revert to original isDev function
This commit is contained in:
@@ -20,12 +20,11 @@ export function invokeMenu(menu: RendererMenuItem[]) {
|
||||
}
|
||||
|
||||
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);
|
||||
return true;
|
||||
// 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 isLinux() {
|
||||
|
||||
Reference in New Issue
Block a user