more fixes

This commit is contained in:
Paul Miller
2023-10-03 14:38:31 -05:00
committed by Tony Giorgio
parent 85448fb7a5
commit 7a962c5f92
2 changed files with 15 additions and 5 deletions

12
src/utils/baseUrl.ts Normal file
View File

@@ -0,0 +1,12 @@
import { Capacitor } from "@capacitor/core";
// On mobile the origin URL is localhost, so we hardcode the base URL
export function baseUrlAccountingForNative(network?: string) {
if (Capacitor.isNativePlatform()) {
return network === "bitcoin"
? "https://app.mutinywallet.com"
: "https://signet-app.mutinywallet.com";
} else {
return window.location.origin;
}
}