Skip to content

Commit

Permalink
Not everyone is glasnt
Browse files Browse the repository at this point in the history
  • Loading branch information
glasnt committed Mar 14, 2021
1 parent 58701ab commit e063329
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo/update_render.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// npm -i puppeteer
// takes a screenshot in headless chrome
// presumes ih has been run to produce the demo_image.html file

const puppeteer = require('puppeteer');

(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.setViewport({width: 1330,height: 800});
await page.goto('file:///Users/glasnt/git/glasnt/ih/demo/demo_image.html');
await page.goto('file://'+process.cwd()+'/demo/demo_image.html');
await page.screenshot({ path: 'demo/demo_render.png' });

await browser.close();
Expand Down

0 comments on commit e063329

Please sign in to comment.