Open mxchinegod opened 6 years ago
Not sure if this affects everyone but with the example provided, I noticed you have to add protocol (http, etc.) to the request parameter for the site to take a screenshot of, i.e.
webshot('http://localhost:8000', file, function(err) { console.log(err) res.sendFile(file) }); }
webshot('http://localhost:8000', file, function(err) {
console.log(err)
res.sendFile(file)
});
}
rather than the first line being webshot('localhost:8000'...
webshot('localhost:8000'...
Not sure if this affects everyone but with the example provided, I noticed you have to add protocol (http, etc.) to the request parameter for the site to take a screenshot of, i.e.
webshot('http://localhost:8000', file, function(err) {
console.log(err)
res.sendFile(file)
});
}
rather than the first line being
webshot('localhost:8000'...