Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
inlife committed Nov 3, 2024
1 parent 5f0bd6d commit e47599a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/nexrender-action-fonts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ module.exports = async (job, settings, params, type) => {
continue;
}

if (!asset.name) {
throw new Error(`Asset ${asset.uid} has to be named using the "name" property that would contain the font name as it is used to be then used in the After Effets project.`);
}

if (!asset.src.match(/\.(ttf)$/)) {
continue;
}

if (!asset.name) {
throw new Error(`Asset ${asset.uid} has to be named using the "name" property that would contain the font name as it is used to be then used in the After Effets project.`);
}

if (process.platform === "darwin") {
await installMac(job, asset.dest);
} else if (process.platform === "win32") {
Expand Down

0 comments on commit e47599a

Please sign in to comment.