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)
|
||||
|
||||
w.webContents.on('devtools-opened', function () {
|
||||
var inputEventIntervalId = setInterval(function () {
|
||||
var showPanelIntevalId = setInterval(function () {
|
||||
if (w && w.devToolsWebContents) {
|
||||
w.devToolsWebContents.executeJavaScript('(' + (function () {
|
||||
var lastPanelId = WebInspector.inspectorView._tabbedPane._tabs.peekLast().id
|
||||
WebInspector.inspectorView.showPanel(lastPanelId);
|
||||
}).toString() + ')()')
|
||||
} else {
|
||||
clearInterval(inputEventIntervalId)
|
||||
clearInterval(showPanelIntevalId)
|
||||
}
|
||||
}, 100)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue