Open DevTools in "undocked" mode by default (#489)

Otherwise, DevTools gets opened inside the Etcher window, causing the
GUI to get completely messed up.

Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
This commit is contained in:
Juan Cruz Viotti 2016-06-17 17:53:03 -04:00 committed by GitHub
parent f49e2982e5
commit abdf26066c

View File

@ -73,7 +73,9 @@ electron.app.on('ready', function() {
mainWindow.on('focus', function() {
electron.globalShortcut.register('CmdOrCtrl+Alt+I', function() {
mainWindow.webContents.openDevTools();
mainWindow.webContents.openDevTools({
mode: 'undocked'
});
});
});