providing option to undock devtools from browser-window
This commit is contained in:
parent
ae5586408f
commit
69d958b94e
7 changed files with 16 additions and 10 deletions
|
@ -40,8 +40,9 @@ BrowserWindow::_init = ->
|
|||
@once 'closed', =>
|
||||
BrowserWindow.windows.remove @id if BrowserWindow.windows.has @id
|
||||
|
||||
BrowserWindow::openDevTools = ->
|
||||
@_openDevTools()
|
||||
BrowserWindow::openDevTools = (options={}) ->
|
||||
options.detach ?= false
|
||||
@_openDevTools(options.detach)
|
||||
|
||||
# Force devToolsWebContents to be created.
|
||||
@devToolsWebContents = @getDevToolsWebContents()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue