diff options
| author | stonedDiscord <Tukz@gmx.de> | 2025-09-03 08:39:19 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2025-09-03 08:39:19 +0200 |
| commit | 3162071cb27510954dde918af629ed5d75deb583 (patch) | |
| tree | 2e9e81b5942f50ac6e470049b0fe3093a4eb4672 /webAO/client/setEmote.ts | |
| parent | 8e46e304f4defc7f9f4eb01922812b28a8585307 (diff) | |
get list of extensions to try from host
Diffstat (limited to 'webAO/client/setEmote.ts')
| -rw-r--r-- | webAO/client/setEmote.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/webAO/client/setEmote.ts b/webAO/client/setEmote.ts index 70f23ac..4c05afc 100644 --- a/webAO/client/setEmote.ts +++ b/webAO/client/setEmote.ts @@ -23,9 +23,8 @@ const setEmote = async ( const emoteSelector = document.getElementById( `client_${position}${pairID}_img`, ) as HTMLImageElement; - const extensionsMap = [".gif", ".png", ".apng", ".webp", ".webp.static"]; - for (const extension of extensionsMap) { + for (const extension of client.emote_extensions) { // Hides all sprites before creating a new sprite if ( |
