fix build bug

This commit is contained in:
AC
2025-06-11 15:43:43 +08:00
parent cd0366392a
commit f72aadc35d
7 changed files with 32 additions and 11 deletions

View File

@@ -367,11 +367,13 @@ export function getClientApi(provider: ServiceProvider | string): ClientApi {
"| Type:",
typeof provider,
"| Browser:",
navigator.userAgent.includes("Edge")
? "Edge"
: navigator.userAgent.includes("Safari")
? "Safari"
: "Other",
typeof navigator !== "undefined"
? navigator.userAgent.includes("Edge")
? "Edge"
: navigator.userAgent.includes("Safari")
? "Safari"
: "Other"
: "SSR",
);
// Standardize the provider name to match Enum case (TitleCase)