fix some categorized emojis

This commit is contained in:
Cutls 2019-10-05 02:40:25 +09:00
parent 9aa83354bd
commit 0168b882a8

View File

@ -107,6 +107,14 @@ function emojiGet(parse, started) {
if (a.shortcode > b.shortcode) return 1; if (a.shortcode > b.shortcode) return 1;
return 0; return 0;
}); });
Object.keys(md["categorized"]).forEach(function (key) {
md["categorized"][key].sort(function (a, b) {
if (a.shortcode < b.shortcode) return -1;
if (a.shortcode > b.shortcode) return 1;
return 0;
});
});
md["if_categorized"] = if_categorized md["if_categorized"] = if_categorized
localStorage.setItem("emojis_" + acct_id, JSON.stringify(md)); localStorage.setItem("emojis_" + acct_id, JSON.stringify(md));
} else { } else {