Skip to content

Commit

Permalink
Update Puppeteer.md
Browse files Browse the repository at this point in the history
  • Loading branch information
falsyvalues committed Nov 17, 2022
1 parent 4b3b4aa commit 7bbd1c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/versioned_docs/version-25.x/Puppeteer.md
Expand Up @@ -108,6 +108,9 @@ class PuppeteerEnvironment extends NodeEnvironment {
}

async teardown() {
if (this.global.__BROWSER_GLOBAL__) {
this.global.__BROWSER_GLOBAL__.disconnect();
}
await super.teardown();
}

Expand Down

0 comments on commit 7bbd1c8

Please sign in to comment.