Skip to content

Commit 7ef3888

Browse files
author
Marco Ris
committedMay 20, 2021
fix: Updated screenshot size
1 parent ace6511 commit 7ef3888

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed
 

‎gulp/shot.js

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
var webshot = require('webshot');
22
require('dotenv').config();
33

4+
const options = {
5+
screenSize: {
6+
width: 1200,
7+
height: 900
8+
},
9+
shotSize: {
10+
width: 1200,
11+
height: 900
12+
}
13+
};
14+
415
const shot = (done) => {
5-
webshot(`${process.env.LOCAL_URL}`, `./wwwroot/wp-content/themes/${process.env.DOCKER_NAME}/screenshot.png`, function(err) {
16+
webshot(`${process.env.LOCAL_URL}`, `./wwwroot/wp-content/themes/${process.env.DOCKER_NAME}/screenshot.png`, options, function(err) {
617
if (err) {
718
console.log(err);
819
}

0 commit comments

Comments
 (0)
Please sign in to comment.