aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.ts
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2025-09-03 11:04:17 +0200
committerstonedDiscord <Tukz@gmx.de>2025-09-03 11:04:17 +0200
commitd8d2fbc8b7bf91dbedc7042daa1081ebd0d1330f (patch)
treed8ce55aeb8f401966ef42c553ed64875f413163c /webAO/client.ts
parent1ba59be463abe60448b0eb7da157251c393c0590 (diff)
also get backgrounds
Diffstat (limited to 'webAO/client.ts')
-rw-r--r--webAO/client.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/webAO/client.ts b/webAO/client.ts
index 27861de..4cceb98 100644
--- a/webAO/client.ts
+++ b/webAO/client.ts
@@ -102,6 +102,7 @@ fpPromise
client.hdid = hdid;
isLowMemory();
loadResources();
+ fetchExtensions();
});
export const delay = (ms: number) => new Promise((res) => setTimeout(res, ms));
@@ -155,6 +156,7 @@ class Client extends EventEmitter {
charicon_extensions: string[];
emote_extensions: string[];
emotions_extensions: string[];
+ background_extensions: string[];
constructor(connectionString: string) {
super();
@@ -213,9 +215,10 @@ class Client extends EventEmitter {
this.temp_packet = "";
loadResources;
isLowMemory;
- this.charicon_extensions = [".png", ".webp"];
- this.emote_extensions = [".gif", ".png", ".apng", ".webp", ".webp.static"];
- this.emotions_extensions = [".png", ".webp"];
+ this.charicon_extensions = [];
+ this.emote_extensions = [];
+ this.emotions_extensions = [];
+ this.background_extensions = [];
}
/**
@@ -411,7 +414,6 @@ class Client extends EventEmitter {
resetAreaList() {
this.areas = [];
document.getElementById("areas").innerHTML = "";
- fetchExtensions();
fetchBackgroundList();
fetchEvidenceList();
fetchCharacterList();