This commit is contained in:
Kevin Sawicki 2016-06-29 09:42:12 -07:00
parent 197ec98800
commit 8b35814d10
2 changed files with 3 additions and 3 deletions

View file

@ -1004,7 +1004,7 @@ describe('browser-window module', function () {
var lastPanelId = WebInspector.inspectorView._tabbedPane._tabs.peekLast().id
WebInspector.inspectorView.showPanel(lastPanelId)
}
w.devToolsWebContents.executeJavaScript('(' + showLastPanel.toString() + ')()')
w.devToolsWebContents.executeJavaScript(`(${showLastPanel})()`)
} else {
clearInterval(showPanelIntevalId)
}
@ -1080,7 +1080,7 @@ describe('browser-window module', function () {
var lastPanelId = WebInspector.inspectorView._tabbedPane._tabs.peekLast().id
WebInspector.inspectorView.showPanel(lastPanelId)
}
w.devToolsWebContents.executeJavaScript('(' + showLastPanel.toString() + ')()')
w.devToolsWebContents.executeJavaScript(`(${showLastPanel})()`)
} else {
clearInterval(showPanelIntevalId)
}