From 23150f02c3971c673738bcae95343d64eb19b5b2 Mon Sep 17 00:00:00 2001 From: evanpelle Date: Wed, 25 Mar 2026 14:47:17 -0700 Subject: [PATCH] bugfix: flags not showing up because they need assetUrl --- src/client/FlagInputModal.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/FlagInputModal.ts b/src/client/FlagInputModal.ts index 4af9a1e2c..fd3370078 100644 --- a/src/client/FlagInputModal.ts +++ b/src/client/FlagInputModal.ts @@ -2,6 +2,7 @@ import { html } from "lit"; import { customElement, state } from "lit/decorators.js"; import Countries from "resources/countries.json" with { type: "json" }; import { UserMeResponse } from "src/core/ApiSchemas"; +import { assetUrl } from "src/core/AssetUrls"; import { Cosmetics } from "src/core/CosmeticSchemas"; import { UserSettings } from "src/core/game/UserSettings"; import { getUserMe } from "./Api"; @@ -58,7 +59,7 @@ export class FlagInputModal extends BaseModal { .flag=${{ key: "country:xx", name: "None", - url: "/flags/xx.svg", + url: assetUrl("/flags/xx.svg"), }} .selected=${selectedFlag === "" || selectedFlag === "country:xx"} .onSelect=${onSelect} @@ -76,7 +77,7 @@ export class FlagInputModal extends BaseModal { .flag=${{ key: `country:${country.code}`, name: country.name, - url: `/flags/${country.code}.svg`, + url: assetUrl(`/flags/${country.code}.svg`), }} .selected=${selectedFlag === `country:${country.code}`} .onSelect=${onSelect}