Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Commit e04cd7f

Browse files
authored
Merge 0864416 into c1c066d
2 parents c1c066d + 0864416 commit e04cd7f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/window-lifecycle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export async function createMainWindow({ dimensions, positions }: any, settings:
100100

101101
loadWindow();
102102

103-
if (__DEV__ || DEV_TOOLS) {
103+
if ((__DEV__ || DEV_TOOLS) && !process.env.DISABLE_DEV_TOOLS) {
104104
mainWindow.webContents.openDevTools();
105105
}
106106

tests/common.js

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export default function initialize() {
3131
MOCK: true,
3232
DISABLE_MOCK_POINTER_EVENTS: true,
3333
HIDE_DEBUG_MOCK: true,
34+
DISABLE_DEV_TOOLS: true,
3435
});
3536
onboardingPage = new OnboardingPage(app);
3637
modalPage = new ModalPage(app);

0 commit comments

Comments
 (0)