fix(core): update

This commit is contained in:
Philipp Kunz 2021-08-16 17:47:20 +02:00
parent 0502e7bc99
commit 0ae13c970e

View File

@ -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 page.close();
await context.close();
} catch (e) {
console.log(e);
} finally {
await browser.stop(); await browser.stop();
} } catch {}
throw new Error(`failed to render ${urlArg}`);
}
}); });
page.on('console', (msg) => { page.on('console', (msg) => {