diff options
| author | stonedDiscord <Tukz@gmx.de> | 2025-09-03 11:04:17 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2025-09-03 11:04:17 +0200 |
| commit | d8d2fbc8b7bf91dbedc7042daa1081ebd0d1330f (patch) | |
| tree | d8ce55aeb8f401966ef42c553ed64875f413163c /webAO/client.ts | |
| parent | 1ba59be463abe60448b0eb7da157251c393c0590 (diff) | |
also get backgrounds
Diffstat (limited to 'webAO/client.ts')
| -rw-r--r-- | webAO/client.ts | 10 |
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(); |
