mirror of
https://github.com/wukko/cobalt.git
synced 2025-04-29 14:04:25 +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 settings from "$lib/state/settings";
|
||||
import env, { officialApiURL } from "$lib/env";
|
||||
|
||||
export const currentApiURL = () => {
|
||||
const processingSettings = get(settings).processing;
|
||||
@ -10,9 +10,5 @@ export const currentApiURL = () => {
|
||||
return new URL(customInstanceURL).origin;
|
||||
}
|
||||
|
||||
if (env.DEFAULT_API) {
|
||||
return new URL(env.DEFAULT_API).origin;
|
||||
}
|
||||
|
||||
return new URL(officialApiURL).origin;
|
||||
return new URL(env.DEFAULT_API!).origin;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user