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 });