From a14506f016da151c0cc4749b24322a47d9d12bef Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Wed, 11 Jan 2017 16:14:03 -0400 Subject: [PATCH] fix(GUI): open DevTools in `detach` mode (#1014) We were previously using the `undocked` mode, which would open DevTools in a seaprate window, however the user was still allows to pick a new mode, causing DevTools to be shown inside the main application and completely ruining the UI. The `detach` mode in the other hand, completely prevents user from putting DevTools in the main application, therefore allowing no way to make the UI look broken. See: http://electron.atom.io/docs/api/web-contents/ Signed-off-by: Juan Cruz Viotti --- lib/gui/etcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gui/etcher.js b/lib/gui/etcher.js index 2edb4950..78daddb6 100644 --- a/lib/gui/etcher.js +++ b/lib/gui/etcher.js @@ -65,7 +65,7 @@ electron.app.on('ready', () => { mainWindow.on('focus', () => { electron.globalShortcut.register('CmdOrCtrl+Alt+I', () => { mainWindow.webContents.openDevTools({ - mode: 'undocked' + mode: 'detach' }); }); });