mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Remove unnecessary loop for closing open pages
This commit is contained in:
parent
4db01746d8
commit
d04d28a56d
1 changed files with 0 additions and 3 deletions
|
@ -1056,9 +1056,6 @@ async function closeSession(browser) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (session.browser !== undefined) {
|
if (session.browser !== undefined) {
|
||||||
for (const page of await session.browser.pages()) {
|
|
||||||
await page.close();
|
|
||||||
}
|
|
||||||
await session.browser.close();
|
await session.browser.close();
|
||||||
}
|
}
|
||||||
session.closed = true;
|
session.closed = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue