mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-26 04:36:35 +00:00
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:
parent
f49e2982e5
commit
abdf26066c
@ -73,7 +73,9 @@ electron.app.on('ready', function() {
|
|||||||
|
|
||||||
mainWindow.on('focus', function() {
|
mainWindow.on('focus', function() {
|
||||||
electron.globalShortcut.register('CmdOrCtrl+Alt+I', function() {
|
electron.globalShortcut.register('CmdOrCtrl+Alt+I', function() {
|
||||||
mainWindow.webContents.openDevTools();
|
mainWindow.webContents.openDevTools({
|
||||||
|
mode: 'undocked'
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user