Skip to content

Commit

Permalink
disable gpu when when launching puppeteer (#1864)
Browse files Browse the repository at this point in the history
  • Loading branch information
deniak authored Aug 27, 2024
1 parent 17d2142 commit cdb2957
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/rules/links/linkchecker.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ export async function check(sr, done) {
// - image (pass): https://www.w3.org/TR/2021/WD-pubrules-20210401/images/sample.png
// - image (pass): https://www.w3.org/TR/2021/WD-pubrules-20210401/sample.png
// - image (error): https://w3c.github.io/pubrules/sample.png
const browser = await puppeteer.launch({ headless: 'new' });
const browser = await puppeteer.launch({
headless: 'true',
args: ['--disable-gpu'],
});
const page = await browser.newPage();
const docPath = sr.url.replace(/\/[^/]+$/, '/').replace(/^https?:/, '');

Expand Down

0 comments on commit cdb2957

Please sign in to comment.