mirror of
https://github.com/wukko/cobalt.git
synced 2025-04-29 22:14:26 +02:00
web/api-url: don't return officialApiURL
This commit is contained in:
parent
b56c6b70a2
commit
e5d9521819
@ -1,6 +1,6 @@
|
|||||||
|
import env from "$lib/env";
|
||||||
import { get } from "svelte/store";
|
import { get } from "svelte/store";
|
||||||
import settings from "$lib/state/settings";
|
import settings from "$lib/state/settings";
|
||||||
import env, { officialApiURL } from "$lib/env";
|
|
||||||
|
|
||||||
export const currentApiURL = () => {
|
export const currentApiURL = () => {
|
||||||
const processingSettings = get(settings).processing;
|
const processingSettings = get(settings).processing;
|
||||||
@ -10,9 +10,5 @@ export const currentApiURL = () => {
|
|||||||
return new URL(customInstanceURL).origin;
|
return new URL(customInstanceURL).origin;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (env.DEFAULT_API) {
|
return new URL(env.DEFAULT_API!).origin;
|
||||||
return new URL(env.DEFAULT_API).origin;
|
|
||||||
}
|
|
||||||
|
|
||||||
return new URL(officialApiURL).origin;
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user