aboutsummaryrefslogtreecommitdiff
path: root/webAO/packets/handlers/handlePV.ts
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2025-09-03 17:37:36 +0200
committerGitHub <noreply@github.com>2025-09-03 17:37:36 +0200
commit0d2a3994e203755702ebe4afbd0f3c721ee8ce38 (patch)
tree9347303eaa9daad5e10420ab1d90e24593c70df1 /webAO/packets/handlers/handlePV.ts
parent8e46e304f4defc7f9f4eb01922812b28a8585307 (diff)
parent035951baf3819f56093f7156b345689aa5093f28 (diff)
Merge pull request #270 from AttorneyOnline/ext
Let the webhost specify the extensions use
Diffstat (limited to 'webAO/packets/handlers/handlePV.ts')
-rw-r--r--webAO/packets/handlers/handlePV.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/webAO/packets/handlers/handlePV.ts b/webAO/packets/handlers/handlePV.ts
index 900ea89..4ac747f 100644
--- a/webAO/packets/handlers/handlePV.ts
+++ b/webAO/packets/handlers/handlePV.ts
@@ -58,9 +58,8 @@ export const handlePV = async (args: string[]) => {
}
// Make sure the asset server is case insensitive, or that everything on it is lowercase
- const extensionsMap = [".png", ".webp"];
let url;
- for (const extension of extensionsMap) {
+ for (const extension of client.emotions_extensions) {
url = `${AO_HOST}characters/${encodeURI(
me.name.toLowerCase(),
)}/emotions/button${i}_off${extension}`;