Skip to content

Commit

Permalink
Ignore HTTPS Errors.
Browse files Browse the repository at this point in the history
Allow people to use the CLI tool with their self-signed certificates.
  • Loading branch information
workeffortwaste committed Nov 28, 2020
1 parent ca927ff commit 4cbf59c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion layout-shift-gif.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const getColor = (cls) => {

const createGif = async (url, device) => {
// Launch puppeteer
const browser = await puppeteer.launch({ args: ['--no-sandbox'], timeout: 10000 })
const browser = await puppeteer.launch({ ignoreHTTPSErrors: true, args: ['--no-sandbox'], timeout: 10000 })

try {
const page = await browser.newPage()
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "layout-shift-gif",
"version": "1.1.2",
"version": "1.1.3",
"description": "Generates a .gif showing the layout shift events for a website.",
"main": "./layout-shift-gif.js",
"keywords": [
Expand All @@ -19,7 +19,7 @@
"dependencies": {
"canvas": "^2.6.1",
"gif-encoder-2": "^1.0.5",
"puppeteer": "^5.2.1",
"puppeteer": "^5.5.0",
"yargs": "^15.4.1"
},
"bin": {
Expand All @@ -30,8 +30,8 @@
},
"homepage": "https://defaced.dev/tools/layout-shift-gif-generator/",
"devDependencies": {
"eslint": "^7.13.0",
"eslint-config-standard": "^16.0.1",
"eslint": "^7.14.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1"
Expand Down

0 comments on commit 4cbf59c

Please sign in to comment.