Update interval id variable name
authorKevin Sawicki <kevinsawicki@gmail.com>
Tue, 17 May 2016 23:42:21 +0000 (16:42 -0700)
committerKevin Sawicki <kevinsawicki@gmail.com>
Tue, 17 May 2016 23:42:21 +0000 (16:42 -0700)
spec/api-browser-window-spec.js

index a6da7f7..9b07cb6 100644 (file)
@@ -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)
         })