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

Commit 48c4303

Browse files
committed
fix spectron not running
1 parent c1c066d commit 48c4303

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/main/window-lifecycle.js

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

101101
loadWindow();
102102

103-
if (__DEV__ || DEV_TOOLS) {
103+
console.log(process.env);
104+
console.log(process.argv);
105+
106+
if ((__DEV__ || DEV_TOOLS) && !process.env.DISABLE_DEV_TOOLS) {
104107
mainWindow.webContents.openDevTools();
105108
}
106109

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)