Don't hard code the exported image extension
This commit is contained in:
parent
7b58aacc79
commit
1881a56e28
@ -261,7 +261,7 @@ for (let member in recurseAllChildren(Eons.getOpenProject())) {
|
||||
cards.push(card_data);
|
||||
|
||||
let export_dir = new File(member.parent.file, 'export');
|
||||
let target_file = new File(export_dir, card_data.code + '.png');
|
||||
let target_file = new File(export_dir, card_data.code + '.' + FORMAT);
|
||||
if (!target_file.exists() || member.file.lastModified() > target_file.lastModified()) {
|
||||
printf("Image for '%s' is out of date, rebuilding...\n", member);
|
||||
export_dir.mkdir();
|
||||
|
Loading…
Reference in New Issue
Block a user