tungs / timesnap

Node.js program that takes screenshots at smooth intervals of web pages with JavaScript animations
BSD 3-Clause "New" or "Revised" License
234 stars 57 forks source link

Add option to override handleSIGINT in launchOptions #74

Open imlinder opened 1 year ago

imlinder commented 1 year ago

Checklist

Description

When running timecut, the SIGINT event stops working as expected. Puppeteer has a launchoption to not handle SIGINT (defaults to closing the browser process): https://pptr.dev/api/puppeteer.launchoptions.handlesigint. This fix will be useful if you want to be able to make sure a capture completes before terminating the process.