From: deepak1556 Date: Wed, 11 Mar 2015 14:28:12 +0000 (+0530) Subject: define devToolsWebContents for use from remote module X-Git-Tag: v0.22.0~9^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=adb130cefa830e656b62756e99bbb85dd25c2363;p=electron.git define devToolsWebContents for use from remote module --- diff --git a/atom/browser/api/lib/browser-window.coffee b/atom/browser/api/lib/browser-window.coffee index 49608ca5..9c8e5a91 100644 --- a/atom/browser/api/lib/browser-window.coffee +++ b/atom/browser/api/lib/browser-window.coffee @@ -17,6 +17,7 @@ BrowserWindow::_init = -> @setMenu menu if menu? @webContents = @getWebContents() + @devToolsWebContents = null @webContents.once 'destroyed', => @webContents = null # Remember the window ID.