aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.ts
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2025-09-03 08:39:19 +0200
committerstonedDiscord <Tukz@gmx.de>2025-09-03 08:39:19 +0200
commit3162071cb27510954dde918af629ed5d75deb583 (patch)
tree2e9e81b5942f50ac6e470049b0fe3093a4eb4672 /webAO/client.ts
parent8e46e304f4defc7f9f4eb01922812b28a8585307 (diff)
get list of extensions to try from host
Diffstat (limited to 'webAO/client.ts')
-rw-r--r--webAO/client.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/webAO/client.ts b/webAO/client.ts
index 4d8390a..28679c0 100644
--- a/webAO/client.ts
+++ b/webAO/client.ts
@@ -151,6 +151,8 @@ class Client extends EventEmitter {
connect: () => void;
loadResources: () => void;
isLowMemory: () => void;
+ charicon_extensions: string[];
+ emote_extensions: string[];
constructor(connectionString: string) {
super();
@@ -209,6 +211,8 @@ class Client extends EventEmitter {
this.temp_packet = "";
loadResources;
isLowMemory;
+ this.charicon_extensions = [".png", ".webp"];
+ this.emote_extensions = [".gif", ".png", ".apng", ".webp", ".webp.static"];
}
/**