Update raw team length restriction to 25 KB (#2125)

This commit is contained in:
Leonard Craft III 2023-06-16 00:28:17 -05:00 committed by GitHub
parent faf40776a0
commit f0d9f53ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -914,8 +914,8 @@ function toId() {
*/
sendTeam: function (team) {
var packedTeam = '' + Storage.getPackedTeam(team);
if (packedTeam.length > 100 * 1024 - 6) {
alert("Your team is over 100 KB, usually caused by having over 600 Pokemon in it. Please use a smaller team.");
if (packedTeam.length > 25 * 1024 - 6) {
alert("Your team is over 25 KB. Please use a smaller team.");
return;
}
this.send('/utm ' + packedTeam);