Clear interval before setting new one
This commit is contained in:
parent
e2e33a8cf0
commit
a851695bb9
1 changed files with 2 additions and 0 deletions
|
@ -1667,6 +1667,8 @@ describe('BrowserWindow module', function () {
|
|||
|
||||
const showLastDevToolsPanel = () => {
|
||||
w.webContents.once('devtools-opened', function () {
|
||||
clearInterval(showPanelIntervalId)
|
||||
|
||||
showPanelIntervalId = setInterval(function () {
|
||||
if (w == null || w.isDestroyed()) {
|
||||
clearInterval(showLastDevToolsPanel)
|
||||
|
|
Loading…
Reference in a new issue