mirror of
https://github.com/vladocar/screenshoteer.git
synced 2024-12-22 13:42:19 +01:00
clean
This commit is contained in:
parent
d5a71d8b5c
commit
75a3e55a47
1 changed files with 1 additions and 8 deletions
9
index.js
9
index.js
|
@ -39,14 +39,7 @@ console.log(fullPage);
|
|||
if (program.el) {
|
||||
const el = await page.$(program.el);
|
||||
await el.screenshot({
|
||||
path:
|
||||
(await page.title()) +
|
||||
' ' +
|
||||
program.emulate +
|
||||
' ' +
|
||||
d.getTime() +
|
||||
program.el +
|
||||
'.png'
|
||||
path: `${await page.title()} ${program.emulate} ${program.el} ${d.getTime()}.png`
|
||||
});
|
||||
} else {
|
||||
await page.screenshot({path: await page.title() + " " + program.emulate + " " + d.getTime() + '.png', fullPage: fullPage})
|
||||
|
|
Loading…
Reference in a new issue