Fix lint: guard browser globals and normalize indentation
This commit is contained in:
parent
7ffc454e47
commit
a477bb3327
2 changed files with 9 additions and 9 deletions
|
|
@ -50,7 +50,7 @@ await page.setViewportSize({ width: cfg.width, height: cfg.height }); // workaro
|
|||
|
||||
// some debug info about the page (screen dimensions, user agent)
|
||||
if (cfg.debug) {
|
||||
// eslint-disable-next-line no-undef
|
||||
/* global window, navigator */
|
||||
const debugInfo = await page.evaluate(() => {
|
||||
const { width, height, availWidth, availHeight } = window.screen;
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue