Update interval id variable name
This commit is contained in:
parent
f95c46d987
commit
9266f9abfc
1 changed files with 2 additions and 2 deletions
|
@ -834,14 +834,14 @@ describe('browser-window module', function () {
|
||||||
BrowserWindow.addDevToolsExtension(extensionPath)
|
BrowserWindow.addDevToolsExtension(extensionPath)
|
||||||
|
|
||||||
w.webContents.on('devtools-opened', function () {
|
w.webContents.on('devtools-opened', function () {
|
||||||
var inputEventIntervalId = setInterval(function () {
|
var showPanelIntevalId = setInterval(function () {
|
||||||
if (w && w.devToolsWebContents) {
|
if (w && w.devToolsWebContents) {
|
||||||
w.devToolsWebContents.executeJavaScript('(' + (function () {
|
w.devToolsWebContents.executeJavaScript('(' + (function () {
|
||||||
var lastPanelId = WebInspector.inspectorView._tabbedPane._tabs.peekLast().id
|
var lastPanelId = WebInspector.inspectorView._tabbedPane._tabs.peekLast().id
|
||||||
WebInspector.inspectorView.showPanel(lastPanelId);
|
WebInspector.inspectorView.showPanel(lastPanelId);
|
||||||
}).toString() + ')()')
|
}).toString() + ')()')
|
||||||
} else {
|
} else {
|
||||||
clearInterval(inputEventIntervalId)
|
clearInterval(showPanelIntevalId)
|
||||||
}
|
}
|
||||||
}, 100)
|
}, 100)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue