Skip to content

Commit

Permalink
fix(browser): dispose tester iframe on done (#5595)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa authored Apr 23, 2024
1 parent e0ae829 commit b213571
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/browser/src/client/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ client.ws.addEventListener('open', async () => {
const filenames = e.data.filenames
filenames.forEach(filename => runningFiles.delete(filename))

const iframeId = filenames.length > 1 ? ID_ALL : filenames[0]
iframes.get(iframeId)?.remove()
iframes.delete(iframeId)

if (!runningFiles.size)
await done()
break
Expand Down

0 comments on commit b213571

Please sign in to comment.