Release Healer Man 0.1.16

This commit is contained in:
phenom committed 2026-09-05 20:42:38 -04:00
1 parent f49e54f35f
commit b57d2b2839
89 files changed
+6055 -17

No files matched your search

+2 -2
View File
@@ -40,7 +40,7 @@ let pendingCharacters: CharacterProfile[] | null = null;
let saveTimer: ReturnType<typeof setTimeout> | null = null;
let saveQueue = Promise.resolve();
function apiOrigin(): string {
export function onlineApiOrigin(): string {
const configured = String(import.meta.env.VITE_API_BASE_URL ?? "").replace(/\/+$/, "");
if (configured) return configured;
return Capacitor.isNativePlatform() ? NATIVE_API_ORIGIN : "";
@@ -53,7 +53,7 @@ export async function requestOnlineJson<T>(pathname: string, init: RequestInit =
if (token) headers.set("Authorization", `Bearer ${token}`);
let response: Response;
try {
response = await fetch(`${apiOrigin()}${pathname}`, { ...init, headers });
response = await fetch(`${onlineApiOrigin()}${pathname}`, { ...init, headers });
} catch {
throw new OnlineApiError("The online server is unavailable. Check your connection or play offline.", 0);
}