fix: fix prettier
parent
d9eda6a7a5
commit
3c0c0caffc
|
@ -3,10 +3,10 @@ import store from '../../store'
|
|||
|
||||
import data from '../../../../data/all'
|
||||
|
||||
const nimbleEmojiIndex = new NimbleEmojiIndex(data);
|
||||
const nimbleEmojiIndex = new NimbleEmojiIndex(data)
|
||||
|
||||
function getEmojiData(skinTone) {
|
||||
store.update({skin: skinTone})
|
||||
store.update({ skin: skinTone })
|
||||
|
||||
return nimbleEmojiIndex.search('thumbsup')[0]
|
||||
}
|
||||
|
|
|
@ -39,7 +39,12 @@ export default class NimbleEmojiIndex {
|
|||
if (skin_variations) {
|
||||
this.emojis[id] = {}
|
||||
for (let skinTone = 1; skinTone <= 6; skinTone++) {
|
||||
this.emojis[id][skinTone] = getSanitizedData({id, skin: skinTone}, skinTone, this.set, this.data)
|
||||
this.emojis[id][skinTone] = getSanitizedData(
|
||||
{ id, skin: skinTone },
|
||||
skinTone,
|
||||
this.set,
|
||||
this.data,
|
||||
)
|
||||
}
|
||||
} else {
|
||||
this.emojis[id] = getSanitizedData(id, null, this.set, this.data)
|
||||
|
@ -81,7 +86,7 @@ export default class NimbleEmojiIndex {
|
|||
if (this.customEmojisList != custom)
|
||||
this.addCustomToPool(custom, this.originalPool)
|
||||
|
||||
const skinTone = store.get('skin') || 1;
|
||||
const skinTone = store.get('skin') || 1
|
||||
|
||||
maxResults || (maxResults = 75)
|
||||
include || (include = [])
|
||||
|
|
|
@ -115,9 +115,9 @@ function getData(emoji, skin, set, data) {
|
|||
}
|
||||
|
||||
if (
|
||||
(set &&
|
||||
variationData[`has_img_${set}`] == undefined ||
|
||||
variationData[`has_img_${set}`]) || !set
|
||||
(set && variationData[`has_img_${set}`] == undefined) ||
|
||||
variationData[`has_img_${set}`] ||
|
||||
!set
|
||||
) {
|
||||
emojiData.skin_tone = skin
|
||||
|
||||
|
|
Loading…
Reference in New Issue