Added compiler flag to prevent auto-opening of DevTools (-D suppress_devtools).

This commit is contained in:
Thomas Byrne
2018-11-02 10:38:28 +11:00
committed by Joshua Granick
parent 49d472c278
commit e2cf19e14c

View File

@@ -64,7 +64,7 @@ class ElectronSetup {
}); });
ElectronSetup.window.loadURL( 'file://' + js.Node.__dirname + '/index.html' ); ElectronSetup.window.loadURL( 'file://' + js.Node.__dirname + '/index.html' );
#if debug #if (debug && !suppress_devtools)
ElectronSetup.window.webContents.openDevTools(); ElectronSetup.window.webContents.openDevTools();
#end #end
}); });