diff options
Diffstat (limited to 'webAO')
| -rw-r--r-- | webAO/client.ts | 10 | ||||
| -rw-r--r-- | webAO/client/fetchLists.ts | 1 |
2 files changed, 7 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(); diff --git a/webAO/client/fetchLists.ts b/webAO/client/fetchLists.ts index 7940eea..3d590b9 100644 --- a/webAO/client/fetchLists.ts +++ b/webAO/client/fetchLists.ts @@ -74,6 +74,7 @@ export const fetchExtensions = async () => { client.charicon_extensions = allextensions.charicon_extensions || [".png", ".webp"]; client.emote_extensions = allextensions.emote_extensions || [".gif", ".png", ".apng", ".webp", ".webp.static"]; client.emotions_extensions = allextensions.emotions_extensions || [".png", ".webp"]; + client.background_extensions = allextensions.background_extensions || [".png", ".gif", ".webp", ".apng"]; console.log("charicons "+client.charicon_extensions) console.log("emotes "+client.emote_extensions) console.log("emotions "+client.emotions_extensions) |
