Load emoticons through public API.

This commit is contained in:
flash 2024-11-14 03:34:55 +00:00
commit 3dff2e250f
4 changed files with 328 additions and 214 deletions
src/ami.js

View file

@ -188,9 +188,9 @@ var AmiContext = function(title, auth, loading) {
return;
}
futami.getJson('emotes', function(emotes) {
futami.getApiJson('/v1/emotes', function(emotes) {
if(Array.isArray(emotes))
emoticons.loadLegacy(emotes);
emoticons.load(emotes);
chat.emoticonList.render(emoticons);
});
});