[cleanup]

release
Etienne Lemay 2020-03-16 09:07:15 -04:00
parent fcae7a913b
commit f8ce5a6814
1 changed files with 3 additions and 3 deletions

View File

@ -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
} }