This commit is contained in:
choelzl 2022-02-23 20:52:20 +01:00
parent b9e6adf349
commit fff72cd37c
Signed by: sora
GPG Key ID: A362EA0491E2EEA0

View File

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