fix: "Ad 6,7" in absences
This commit is contained in:
@@ -61,7 +61,7 @@ async function handleError(page, err) {
|
||||
const downloadPath = path.resolve('./downloads');
|
||||
if (!fs.existsSync(downloadPath)) fs.mkdirSync(downloadPath);
|
||||
|
||||
const client = await page.target().createCDPSession();
|
||||
const client = await page.createCDPSession();
|
||||
await client.send('Page.setDownloadBehavior', {
|
||||
behavior: 'allow',
|
||||
downloadPath: downloadPath,
|
||||
|
||||
Reference in New Issue
Block a user