devtools: initialise devtoolsWebContents when opened with inspect* apis
This commit is contained in:
parent
ad851547e0
commit
67a9931b55
3 changed files with 10 additions and 4 deletions
|
@ -55,6 +55,14 @@ BrowserWindow::openDevTools = (options={}) ->
|
|||
BrowserWindow::toggleDevTools = ->
|
||||
if @isDevToolsOpened() then @closeDevTools() else @openDevTools()
|
||||
|
||||
BrowserWindow::inspectElement = (x, y) ->
|
||||
@openDevTools true
|
||||
@_inspectElement x, y
|
||||
|
||||
BrowserWindow::inspectServiceWorker = ->
|
||||
@openDevTools true
|
||||
@_inspectServiceWorker()
|
||||
|
||||
BrowserWindow::getWebContents = ->
|
||||
wrapWebContents @_getWebContents()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue