more info on closing chromium
This commit is contained in:
parent
0f12e5f2d7
commit
4ce60bdd4d
|
|
@ -215,6 +215,14 @@ for (const page of await browser.pages()) {
|
||||||
await browser.close();
|
await browser.close();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can also try the following if one of the calls is hanging for some reason.
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
await Promise.race([browser.close(), browser.close(), browser.close()]);
|
||||||
|
```
|
||||||
|
|
||||||
|
Always `await browser.close()`, even if your script is returning an error.
|
||||||
|
|
||||||
### I need Accessible pdf files
|
### I need Accessible pdf files
|
||||||
|
|
||||||
This is due to the way @sparticuz/chromium is built. If you require accessible pdf's, you'll need to
|
This is due to the way @sparticuz/chromium is built. If you require accessible pdf's, you'll need to
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue