diff --git a/web/emotewall/index.js b/web/emotewall/index.js index 9ae3573..89e40f0 100644 --- a/web/emotewall/index.js +++ b/web/emotewall/index.js @@ -339,13 +339,13 @@ $(async function () { main(0); - const handleEmoteData = (d) =>{ + const handleEmoteData = async (d) =>{ let te = d.twitch, ce = d.custom.map(e=>e.replace(/\s/g, '')).filter(e=> img_map[e]); if(!te || te.length == 0){ return ce; }else{ let cleanTE = te.map(e => e.split(":")[0]).filter(e=> e.length>0); - return ce.concat(loadImagesTwitch(cleanTE)) + return ce.concat(await loadImagesTwitch(cleanTE)) } }