mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
docs: Remove unnecessary shows
This commit is contained in:
@@ -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'})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user