Don't hard code the exported image extension

This commit is contained in:
Adam Goldsmith 2021-09-16 16:04:40 -04:00
parent 7b58aacc79
commit 1881a56e28
1 changed files with 1 additions and 1 deletions

View File

@ -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();