Fix getting `skin_variations` data
parent
3373997cd6
commit
b2d9311c87
|
@ -76,8 +76,7 @@ function getData(emoji, skin, set) {
|
||||||
emojiData = JSON.parse(JSON.stringify(emojiData))
|
emojiData = JSON.parse(JSON.stringify(emojiData))
|
||||||
|
|
||||||
var skinKey = SKINS[skin - 1],
|
var skinKey = SKINS[skin - 1],
|
||||||
variationKey = `${emojiData.unified}-${skinKey}`,
|
variationData = emojiData.skin_variations[skinKey]
|
||||||
variationData = emojiData.skin_variations[variationKey]
|
|
||||||
|
|
||||||
if (!variationData.variations && emojiData.variations) {
|
if (!variationData.variations && emojiData.variations) {
|
||||||
delete emojiData.variations
|
delete emojiData.variations
|
||||||
|
|
Loading…
Reference in New Issue