aaaaaa
This commit is contained in:
parent
72ac682637
commit
002bc7b0c0
|
@ -1,6 +1,6 @@
|
|||
import { $i } from "@/account";
|
||||
// #v-ifdef VITE_CAPACITOR
|
||||
const address = $i ? new URL($i.instanceUrl) : null;
|
||||
const address = $i ? new URL($i.instanceUrl) : "localhost";
|
||||
// #v-else
|
||||
const address = new URL(location.href);
|
||||
// #v-endif
|
||||
|
|
|
@ -16,7 +16,7 @@ export const pendingApiRequestsCount = ref(0);
|
|||
|
||||
const apiClient = new Misskey.api.APIClient({
|
||||
// #v-ifdef VITE_CAPACITOR
|
||||
origin: $i?.instanceUrl || window.location.origin,
|
||||
origin: $i?.instanceUrl || url || window.location.origin,
|
||||
// #v-else
|
||||
origin: url,
|
||||
// #v-endif
|
||||
|
|
Loading…
Reference in New Issue