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
|
||||
plugins.smartdelay.delayFor(30000).then(async () => {
|
||||
if (!page.isClosed) {
|
||||
try {
|
||||
await page.close();
|
||||
await context.close();
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
} finally {
|
||||
await browser.stop();
|
||||
}
|
||||
throw new Error(`failed to render ${urlArg}`);
|
||||
}
|
||||
try {
|
||||
await browser.stop();
|
||||
} catch {}
|
||||
});
|
||||
|
||||
page.on('console', (msg) => {
|
||||
|
Loading…
Reference in New Issue
Block a user