.eslintignore -> .gitignore, no-unused-vars: ignore args starting with _
https://eslint.org/docs/latest/rules/no-unused-vars#argsignorepattern https://eslint.org/docs/latest/rules/no-undef
This commit is contained in:
parent
dec0b519a5
commit
2eaf6f0598
3 changed files with 3 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ if (!cfg.debug) context.setDefaultTimeout(cfg.timeout);
|
|||
|
||||
const page = context.pages().length ? context.pages()[0] : await context.newPage(); // should always exist
|
||||
// console.debug('userAgent:', await page.evaluate(() => navigator.userAgent));
|
||||
// eslint-disable-next-line no-undef
|
||||
if (cfg.debug) console.debug(await page.evaluate(() => window.screen));
|
||||
if (cfg.record && cfg.debug) {
|
||||
// const filter = _ => true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue