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
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}`);
}
} catch {}
});
page.on('console', (msg) => {