fix flags

This commit is contained in:
Emily
2025-01-03 15:48:23 +01:00
parent 617de36fec
commit 835ab6208e

View File

@@ -6,7 +6,8 @@ function iconProvider(e: { _id: string, flag: string, count: number }): ReturnTy
if (!e.flag) return ['icon', 'far fa-question'] if (!e.flag) return ['icon', 'far fa-question']
return [ return [
'img', 'img',
`https://raw.githubusercontent.com/hampusborgos/country-flags/main/png250px/${e.flag.toLowerCase()}.png` `https://raw.githubusercontent.com/hampusborgos/country-flags/refs/heads/main/svg/${e.flag.toLowerCase()}.svg`
// `https://raw.githubusercontent.com/hampusborgos/country-flags/main/png250px/${e.flag.toLowerCase()}.png`
] ]
} }