devtools mode

This commit is contained in:
antelle 2019-01-07 20:43:14 +01:00
parent bd9144628f
commit ee94183e2a
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ const Launcher = {
},
devTools: true,
openDevTools: function() {
this.electron().remote.getCurrentWindow().openDevTools();
this.electron().remote.getCurrentWindow().openDevTools({ mode: 'bottom' });
},
getSaveFileName: function(defaultPath, callback) {
if (defaultPath) {

View File

@ -156,7 +156,7 @@ function createMainWindow() {
setMenu();
mainWindow.loadURL(htmlPath);
if (showDevToolsOnStart) {
mainWindow.openDevTools();
mainWindow.openDevTools({ mode: 'bottom' });
}
mainWindow.once('ready-to-show', () => {
mainWindow.show();