mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-01-05 07:14:25 +01:00
more fixes
This commit is contained in:
committed by
Tony Giorgio
parent
85448fb7a5
commit
7a962c5f92
12
src/utils/baseUrl.ts
Normal file
12
src/utils/baseUrl.ts
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user