mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 13:18:15 +02:00
Fix issue with writing fontawesome icons on Node 14+
This commit is contained in:
@@ -800,7 +800,7 @@ function writeFaIcons(faIcons) {
|
||||
const name = key.substring(4);
|
||||
const def = fontawesome.findIconDefinition({ prefix: prefix, iconName: name });
|
||||
try {
|
||||
fs.writeFileSync(`svg/fontawesome/${key}.svg`, fontawesome.icon(def).html);
|
||||
fs.writeFileSync(`svg/fontawesome/${key}.svg`, fontawesome.icon(def).html.toString());
|
||||
} catch (error) {
|
||||
console.error(`Error: No FontAwesome icon for ${key}`);
|
||||
throw (error);
|
||||
|
||||
Reference in New Issue
Block a user