WIP
This commit is contained in:
parent
b9e6adf349
commit
fff72cd37c
@ -339,13 +339,13 @@ $(async function () {
|
|||||||
|
|
||||||
main(0);
|
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]);
|
let te = d.twitch, ce = d.custom.map(e=>e.replace(/\s/g, '')).filter(e=> img_map[e]);
|
||||||
if(!te || te.length == 0){
|
if(!te || te.length == 0){
|
||||||
return ce;
|
return ce;
|
||||||
}else{
|
}else{
|
||||||
let cleanTE = te.map(e => e.split(":")[0]).filter(e=> e.length>0);
|
let cleanTE = te.map(e => e.split(":")[0]).filter(e=> e.length>0);
|
||||||
return ce.concat(loadImagesTwitch(cleanTE))
|
return ce.concat(await loadImagesTwitch(cleanTE))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user