|
@@ -104,7 +104,7 @@ async function main() {
|
|
|
// Export images
|
|
|
fs.mkdirSync(args.outDirectory, { recursive: true });
|
|
|
setTimeout(async () => {
|
|
|
- plugin.saveImage(path.join(args.outDirectory, fileName), { width: 100, height: 100 });
|
|
|
+ await plugin.saveImage(path.join(args.outDirectory, fileName), { width: 100, height: 100 });
|
|
|
// Cleanup
|
|
|
await plugin.clear();
|
|
|
plugin.dispose();
|