Merge pull request #1238 from deepak1556/browser_window_lib_patch

define devToolsWebContents for use from remote module
This commit is contained in:
Cheng Zhao 2015-03-16 16:43:46 +08:00
commit 7457eccdee

View file

@ -17,6 +17,7 @@ BrowserWindow::_init = ->
@setMenu menu if menu? @setMenu menu if menu?
@webContents = @getWebContents() @webContents = @getWebContents()
@devToolsWebContents = null
@webContents.once 'destroyed', => @webContents = null @webContents.once 'destroyed', => @webContents = null
# Remember the window ID. # Remember the window ID.