fix(core): update
This commit is contained in:
parent
0502e7bc99
commit
0ae13c970e
@ -37,17 +37,9 @@ export class SmartSSR {
|
|||||||
|
|
||||||
// lets protect against left open tabs
|
// lets protect against left open tabs
|
||||||
plugins.smartdelay.delayFor(30000).then(async () => {
|
plugins.smartdelay.delayFor(30000).then(async () => {
|
||||||
if (!page.isClosed) {
|
try {
|
||||||
try {
|
await browser.stop();
|
||||||
await page.close();
|
} catch {}
|
||||||
await context.close();
|
|
||||||
} catch (e) {
|
|
||||||
console.log(e);
|
|
||||||
} finally {
|
|
||||||
await browser.stop();
|
|
||||||
}
|
|
||||||
throw new Error(`failed to render ${urlArg}`);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
page.on('console', (msg) => {
|
page.on('console', (msg) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user