aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/handleCharacterInfo.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/client/handleCharacterInfo.ts')
-rw-r--r--webAO/client/handleCharacterInfo.ts4
1 files changed, 2 insertions, 2 deletions
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}`;