Fix relative img path
This commit is contained in:
@@ -26,7 +26,7 @@ emojiCollectionDirs.forEach(collection => {
|
|||||||
const emojiCollection = readdirSync(path.resolve(emojiDir, collection))
|
const emojiCollection = readdirSync(path.resolve(emojiDir, collection))
|
||||||
.filter(f => f.toLowerCase() !== 'license.md')
|
.filter(f => f.toLowerCase() !== 'license.md')
|
||||||
.map(emoji => {
|
.map(emoji => {
|
||||||
return { name: emoji, src: `/img/emoji/${collection}/${emoji}` };
|
return { name: emoji, src: `img/emoji/${collection}/${emoji}` };
|
||||||
});
|
});
|
||||||
emojiCollections[collection] = { name: collection, images: emojiCollection };
|
emojiCollections[collection] = { name: collection, images: emojiCollection };
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user