mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-21 11:16:36 +02:00
Fix issue where build would fail on older node versions
This commit is contained in:
+3
-3
@@ -690,9 +690,9 @@ function writeTnpIcons(tnpIcons) {
|
||||
}
|
||||
var baseURL = 'http://api.thenounproject.com/icon/';
|
||||
|
||||
var unusedSvgFiles = fs.readdirSync('svg/the-noun-project', { encoding: 'utf8', withFileTypes: true }).reduce(function(obj, dirent) {
|
||||
if (dirent.isFile() && dirent.name.endsWith('.svg')) {
|
||||
obj[dirent.name] = true;
|
||||
var unusedSvgFiles = fs.readdirSync('svg/the-noun-project', 'utf8').reduce(function(obj, name) {
|
||||
if (name.endsWith('.svg')) {
|
||||
obj[name] = true;
|
||||
}
|
||||
return obj;
|
||||
}, {});
|
||||
|
||||
Reference in New Issue
Block a user