mirror of
https://github.com/vladocar/screenshoteer.git
synced 2025-01-03 11:32:11 +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) {
|
if (program.el) {
|
||||||
const el = await page.$(program.el);
|
const el = await page.$(program.el);
|
||||||
await el.screenshot({
|
await el.screenshot({
|
||||||
path:
|
path: `${await page.title()} ${program.emulate} ${program.el} ${d.getTime()}.png`
|
||||||
(await page.title()) +
|
|
||||||
' ' +
|
|
||||||
program.emulate +
|
|
||||||
' ' +
|
|
||||||
d.getTime() +
|
|
||||||
program.el +
|
|
||||||
'.png'
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
await page.screenshot({path: await page.title() + " " + program.emulate + " " + d.getTime() + '.png', fullPage: fullPage})
|
await page.screenshot({path: await page.title() + " " + program.emulate + " " + d.getTime() + '.png', fullPage: fullPage})
|
||||||
|
|
Loading…
Reference in a new issue