Skip to content

Commit

Permalink
Fixing the empty PDF resumes
Browse files Browse the repository at this point in the history
  • Loading branch information
samspired committed Oct 23, 2017
1 parent 81a746b commit d7ebd66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const convert = async() => {
directories.forEach(async(dir) => {
const browser = await puppeteer.launch({args: ['--no-sandbox']});
const page = await browser.newPage();
await page.goto('http://localhost:8080/#/resume/' + dir.name, {waitUntil: 'networkidle'});
await page.goto('http://localhost:8080/#/resume/' + dir.name, {waitUntil: 'networkidle', networkIdleTimeout: 5E3});
await page.pdf({path: path.join(__dirname, '../pdf/' + dir.name + '.pdf'), format: 'A4'});
await browser.close();
});
Expand Down

0 comments on commit d7ebd66

Please sign in to comment.