From 21d06ad9a616a2dbee87410fb84cb51ae40d5986 Mon Sep 17 00:00:00 2001 From: barbowza Date: Tue, 12 Nov 2019 16:00:44 +0000 Subject: [PATCH] Tools: Optional open dev tools in Developer Mode (#2083) * Require --open-dev-tools along with --env dev in command line options to make opening of Dev Tools optional when in Developer mode. * Restore original lines then comment out the call to openDevTools --- ElectronClient/app/ElectronAppWrapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElectronClient/app/ElectronAppWrapper.js b/ElectronClient/app/ElectronAppWrapper.js index 4517a8c1b0..4ebb6d0f5c 100644 --- a/ElectronClient/app/ElectronAppWrapper.js +++ b/ElectronClient/app/ElectronAppWrapper.js @@ -82,7 +82,7 @@ class ElectronAppWrapper { })); // Uncomment this to view errors if the application does not start - if (this.env_ === 'dev') this.win_.webContents.openDevTools(); + // if (this.env_ === 'dev') this.win_.webContents.openDevTools(); this.win_.on('close', (event) => { // If it's on macOS, the app is completely closed only if the user chooses to close the app (willQuitApp_ will be true)