mirror of
https://github.com/simple-icons/simple-icons.git
synced 2024-12-16 01:10:30 +02:00
fixes the relative path
This commit is contained in:
parent
fea7c9f4ac
commit
fc1efcc5e0
2
index.js
2
index.js
@ -8,7 +8,7 @@ data.icons.forEach(i => {
|
||||
const filename = i.title.toLowerCase()
|
||||
.replace(/\+/g, "plus")
|
||||
.replace(/[ .\-!’]/g, '');
|
||||
i.svg = fs.readFileSync(`./icons/${filename}.svg`, 'utf8');
|
||||
i.svg = fs.readFileSync(`${__dirname}/icons/${filename}.svg`, 'utf8');
|
||||
icons[i.title] = i
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user