fix(core): update

This commit is contained in:
2019-11-16 00:50:11 +01:00
parent 67e9fdd10a
commit 5cf23c1134
4 changed files with 31 additions and 17 deletions

View File

@ -98,7 +98,7 @@ export class SmartPdf {
async getPdfForWebsite(websiteUrl: string): Promise<interfaces.IPdfResult> {
const page = await this.headlessBrowser.newPage();
page.emulateMedia('screen');
await page.emulateMedia('screen');
const response = await page.goto(websiteUrl, { waitUntil: 'networkidle2' });
const pdfId = plugins.smartunique.shortId();
const { documentHeight, documentWidth } = await page.evaluate(() => {