mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix to avoid double extension when using the dest argument
This commit is contained in:
parent
f106909150
commit
fa62ae511e
@ -105,7 +105,7 @@ function onPageExit(page, options, data) {
|
|||||||
|
|
||||||
console.log("\n" + 'Generated file(s):');
|
console.log("\n" + 'Generated file(s):');
|
||||||
|
|
||||||
const dest = options.dest + '.png';
|
const dest = options.dest.replace('.png', '') + '.png';
|
||||||
|
|
||||||
// Render page to the output image
|
// Render page to the output image
|
||||||
page.render(dest);
|
page.render(dest);
|
||||||
|
Loading…
Reference in New Issue
Block a user