初始化web服务功能

This commit is contained in:
xintaofei
2026-03-25 14:26:26 +08:00
parent ae70f17d2e
commit ac09d3db9e
99 changed files with 3253 additions and 304 deletions

View File

@@ -0,0 +1,11 @@
export type TransportEnvironment = "tauri" | "web"
export function detectEnvironment(): TransportEnvironment {
if (
typeof window !== "undefined" &&
"__TAURI_INTERNALS__" in window
) {
return "tauri"
}
return "web"
}