mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-01 10:33:14 +08:00
feat(babel6): Fix emoji data
This commit is contained in:
parent
2e2f877ddb
commit
47497dba04
2 changed files with 2 additions and 3 deletions
File diff suppressed because one or more lines are too long
|
@ -42,7 +42,7 @@ class EmojiStore extends NylasStore {
|
|||
}
|
||||
|
||||
getImagePath(emojiName) {
|
||||
emojiData = emojiData || JSON.parse(fs.readFileSync('./emoji-data', {encoding: "utf8"}));
|
||||
emojiData = emojiData || require('./emoji-data').emojiData
|
||||
for (const emoji of emojiData) {
|
||||
if (emoji.short_names.indexOf(emojiName) !== -1) {
|
||||
if (process.platform === "darwin") {
|
||||
|
|
Loading…
Reference in a new issue