providing option to undock devtools from browser-window

This commit is contained in:
deepak1556 2015-03-26 14:43:35 +05:30
parent ae5586408f
commit 69d958b94e
7 changed files with 16 additions and 10 deletions

View file

@ -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()