From 48509ac8194d7ed52f4e2682949bb0b95c4227b3 Mon Sep 17 00:00:00 2001 From: keyan Date: Tue, 23 Nov 2021 12:35:10 -0600 Subject: [PATCH] add shorter timeout --- spawn/capture.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spawn/capture.js b/spawn/capture.js index c8081732..90fc7661 100755 --- a/spawn/capture.js +++ b/spawn/capture.js @@ -3,7 +3,7 @@ const Pageres = require('pageres') async function captureUrl () { - const streams = await new Pageres({ crop: true }) + const streams = await new Pageres({ crop: true, timeout: 5 }) .src(process.argv[2], ['600x314']) .run() process.stdout.write(streams[0], () => process.exit(0))