[cleanup]
parent
fcae7a913b
commit
f8ce5a6814
|
@ -109,10 +109,10 @@ function getData(emoji, skin, set, data) {
|
||||||
if (emojiData.skin_variations && skin > 1) {
|
if (emojiData.skin_variations && skin > 1) {
|
||||||
emojiData = JSON.parse(JSON.stringify(emojiData))
|
emojiData = JSON.parse(JSON.stringify(emojiData))
|
||||||
|
|
||||||
var skinKey = SKINS[skin - 1]
|
var skinKey = SKINS[skin - 1],
|
||||||
if (emojiData.skin_variations[skinKey] !== undefined) {
|
variationData = emojiData.skin_variations[skinKey]
|
||||||
var variationData = emojiData.skin_variations[skinKey]
|
|
||||||
|
|
||||||
|
if (variationData) {
|
||||||
if (!variationData.variations && emojiData.variations) {
|
if (!variationData.variations && emojiData.variations) {
|
||||||
delete emojiData.variations
|
delete emojiData.variations
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue