mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: tw flag not available on some devices
This commit is contained in:
parent
0fc2963c72
commit
bfd88f18ab
@ -24,6 +24,10 @@ export default function ServerFlag({ country_code }: { country_code: string }) {
|
|||||||
|
|
||||||
if (!country_code) return null;
|
if (!country_code) return null;
|
||||||
|
|
||||||
|
if (supportsEmojiFlags && country_code.toLowerCase() === "tw") {
|
||||||
|
country_code = "cn";
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span className="text-[12px] text-muted-foreground">
|
<span className="text-[12px] text-muted-foreground">
|
||||||
{!supportsEmojiFlags ? (
|
{!supportsEmojiFlags ? (
|
||||||
|
Loading…
Reference in New Issue
Block a user