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 = () => {
|
const showLastDevToolsPanel = () => {
|
||||||
w.webContents.once('devtools-opened', function () {
|
w.webContents.once('devtools-opened', function () {
|
||||||
|
clearInterval(showPanelIntervalId)
|
||||||
|
|
||||||
showPanelIntervalId = setInterval(function () {
|
showPanelIntervalId = setInterval(function () {
|
||||||
if (w == null || w.isDestroyed()) {
|
if (w == null || w.isDestroyed()) {
|
||||||
clearInterval(showLastDevToolsPanel)
|
clearInterval(showLastDevToolsPanel)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue