aboutsummaryrefslogtreecommitdiff
path: root/webAO/client
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/client')
-rw-r--r--webAO/client/fetchLists.ts8
-rw-r--r--webAO/client/handleCharacterInfo.ts4
2 files changed, 6 insertions, 6 deletions
diff --git a/webAO/client/fetchLists.ts b/webAO/client/fetchLists.ts
index 2f2fd59..4e32abc 100644
--- a/webAO/client/fetchLists.ts
+++ b/webAO/client/fetchLists.ts
@@ -62,10 +62,10 @@ export const fetchExtensions = async () => {
try {
const extensiondata = await request(`${AO_HOST}extensions.json`);
const allextensions = JSON.parse(extensiondata);
- 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"];
+ client.charicon_extensions = allextensions.charicon_extensions || [".webp", ".png"];
+ client.emote_extensions = allextensions.emote_extensions || [".webp", ".png", ".apng", ".gif"];
+ client.emotions_extensions = allextensions.emotions_extensions || [".webp", ".png"];
+ client.background_extensions = allextensions.background_extensions || [".webp", ".png", ".apng", ".gif"];
console.log("charicons "+client.charicon_extensions)
console.log("emotes "+client.emote_extensions)
console.log("emotions "+client.emotions_extensions)
diff --git a/webAO/client/handleCharacterInfo.ts b/webAO/client/handleCharacterInfo.ts
index 6bec813..84fd613 100644
--- a/webAO/client/handleCharacterInfo.ts
+++ b/webAO/client/handleCharacterInfo.ts
@@ -14,7 +14,7 @@ export const setupCharacterBasic = (chargs: string[], charid: number) => {
if (chargs[0]) {
img.alt = chargs[0];
img.title = chargs[0];
- const iconExt = client.charicon_extensions[0] || ".png";
+ const iconExt = client.charicon_extensions[0] || ".webp";
img.src = `${AO_HOST}characters/${encodeURI(
chargs[0],
)}/char_icon${iconExt}`;
@@ -117,7 +117,7 @@ export const handleCharacterInfo = async (chargs: string[], charid: number) => {
if (chargs[0]) {
img.alt = chargs[0];
img.title = chargs[0];
- const iconExt = client.charicon_extensions[0] || ".png";
+ const iconExt = client.charicon_extensions[0] || ".webp";
img.src = `${AO_HOST}characters/${encodeURI(
chargs[0],
)}/char_icon${iconExt}`;