Load emoticons through public API.
This commit is contained in:
parent
4aa2b4cb1a
commit
3dff2e250f
4 changed files with 328 additions and 214 deletions
src/ami.js
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue