Skip to content

Commit c4f5c94

Browse files
lucasfernogAkryum
authored andcommitted
perf(devtools-background) clearTimeout when needed (#1101)
clearTimeout when already created or retry limit reached
1 parent d971b4a commit c4f5c94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/shell-chrome/src/devtools-background.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ createPanelIfHasVue()
1515

1616
function createPanelIfHasVue () {
1717
if (created || checkCount++ > 10) {
18+
clearInterval(checkVueInterval)
1819
return
1920
}
2021
panelLoaded = false

0 commit comments

Comments
 (0)