Unsanitized flags. Flags that included a dash were being sanitized and not rendering ingame

This commit is contained in:
NewHappyRabbit
2025-02-18 01:44:46 +02:00
parent 0f325d4be8
commit be3fd87727
+1 -1
View File
@@ -168,7 +168,7 @@ export class NameLayer implements Layer {
flagImg.style.marginBottom = "-10%";
flagImg.style.marginTop = "-17%";
flagImg.style.opacity = "0.8";
flagImg.src = "/flags/" + sanitize(player.flag()) + ".svg";
flagImg.src = "/flags/" + player.flag() + ".svg";
flagImg.style.zIndex = "1";
flagImg.style.width = "30%";
flagImg.style.aspectRatio = "3/4";