mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-27 02:44:26 +01:00
13 lines
414 B
TypeScript
13 lines
414 B
TypeScript
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;
|
|
}
|
|
}
|