1
0
Fork 0
forked from OpenNeo/impress

Move the style and state params earlier in the outfit URL

Idk I just think it's nice for them to be next to pose and such!
This commit is contained in:
Emi Matchu 2024-02-01 06:00:39 -08:00
parent c60e222faa
commit 453d6783c4

View file

@ -704,12 +704,6 @@ function buildOutfitQueryString(outfitState) {
color: colorId || "", color: colorId || "",
pose: pose || "", pose: pose || "",
}); });
for (const itemId of wornItemIds) {
params.append("objects[]", itemId);
}
for (const itemId of closetedItemIds) {
params.append("closet[]", itemId);
}
if (altStyleId != null) { if (altStyleId != null) {
params.append("style", altStyleId); params.append("style", altStyleId);
} }
@ -718,6 +712,12 @@ function buildOutfitQueryString(outfitState) {
// refers to "PetState", the database table name for pet appearances. // refers to "PetState", the database table name for pet appearances.
params.append("state", appearanceId); params.append("state", appearanceId);
} }
for (const itemId of wornItemIds) {
params.append("objects[]", itemId);
}
for (const itemId of closetedItemIds) {
params.append("closet[]", itemId);
}
return params.toString(); return params.toString();
} }