Add debug flag to console

This commit is contained in:
Ryan Huffman 2015-12-22 12:03:27 -08:00
parent 09cc9e24d0
commit 328f64da6f

View file

@ -42,6 +42,8 @@ var interfacePath = null;
var dsPath = null;
var acPath = null;
var debug = argv.debug;
if (argv.localDebugBuilds || argv.localReleaseBuilds) {
interfacePath = pathFinder.discoveredPath("Interface", argv.localReleaseBuilds);
dsPath = pathFinder.discoveredPath("domain-server", argv.localReleaseBuilds);
@ -88,6 +90,13 @@ app.on('ready', function() {
resizable: false
});
// In debug mode, keep the menu bar, but auto-hide it so the UI still looks the same.
if (debug) {
mainWindow.setAutoHideMenuBar(true);
} else {
mainWindow.setMenu(null);
}
// and load the index.html of the app.
mainWindow.loadURL('file://' + __dirname + '/index.html');