docs: Remove unnecessary shows

This commit is contained in:
Cheng Zhao 2017-12-01 12:04:50 +09:00
parent 6b408de884
commit 88c4fd3f2b

View file

@ -1126,10 +1126,8 @@ let devtools = null
app.once('ready', () => {
win = new BrowserWindow()
devtools = new BrowserWindow()
win.loadURL('https://github.com')
win.show()
devtools = new BrowserWindow({show: false})
devtools.show()
win.webContents.setDevToolsWebContents(devtools.webContents)
win.webContents.openDevTools({mode: 'detach'})
})