Skip to content

Commit

Permalink
Close pae after screeshot
Browse files Browse the repository at this point in the history
  • Loading branch information
yamitzky committed Feb 7, 2022
1 parent d9e51bd commit 6ecd385
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export class Browser {
await sleep(config.sleep)

const buffer = await page.screenshot({ fullPage: true })
await page.close()
return buffer
}
}

0 comments on commit 6ecd385

Please sign in to comment.