Skip to content

Commit

Permalink
Fixed repeated content when using custom height with a mobile device.
Browse files Browse the repository at this point in the history
  • Loading branch information
workeffortwaste committed Oct 23, 2020
1 parent 828e9f2 commit e978d56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layout-shift-gif.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async function createGif (url, device) {
await page.setViewport({
width: options.width || page.viewport().width,
height: options.height || page.viewport().height,
deviceScaleFactor: page.viewport().deviceScaleFactor
deviceScaleFactor: 1
})
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "layout-shift-gif",
"version": "1.1.0",
"version": "1.1.1",
"description": "Generates a .gif showing the layout shift events for a website.",
"main": "./layout-shift-gif.js",
"keywords":[
Expand Down

0 comments on commit e978d56

Please sign in to comment.