Skip to content

Commit

Permalink
fix: remove dev bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
coroiu committed Dec 5, 2024
1 parent a8ea088 commit f3da1c2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions apps/desktop/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ 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;
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() {
Expand Down

0 comments on commit f3da1c2

Please sign in to comment.