Skip to content

Commit

Permalink
Merge branch 'patch-1' into 'master'
Browse files Browse the repository at this point in the history
Reuse an existing window.PagedConfig instance

Closes #3

See merge request tools/pagedjs-cli!3
  • Loading branch information
fchasen committed Jul 16, 2019
2 parents 06504a4 + dfeb07e commit 2e995af
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/printer.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,8 @@ class Printer extends EventEmitter {
}

await page.evaluate(() => {
window.PagedConfig = {
auto: false
}
window.PagedConfig = window.PagedConfig || {};
window.PagedConfig.auto = false;
});


Expand Down

0 comments on commit 2e995af

Please sign in to comment.