From e2cf19e14cb2e6852ec9ee5dd3833a36326dcb31 Mon Sep 17 00:00:00 2001 From: Thomas Byrne Date: Fri, 2 Nov 2018 10:38:28 +1100 Subject: [PATCH] Added compiler flag to prevent auto-opening of DevTools (-D suppress_devtools). --- templates/electron/haxe/ElectronSetup.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/electron/haxe/ElectronSetup.hx b/templates/electron/haxe/ElectronSetup.hx index 0477bf9f2..60ebeeb56 100644 --- a/templates/electron/haxe/ElectronSetup.hx +++ b/templates/electron/haxe/ElectronSetup.hx @@ -64,7 +64,7 @@ class ElectronSetup { }); ElectronSetup.window.loadURL( 'file://' + js.Node.__dirname + '/index.html' ); - #if debug + #if (debug && !suppress_devtools) ElectronSetup.window.webContents.openDevTools(); #end });