web/env: rename apiURL to defaultApiURL

references to it are now easier to read and understand
This commit is contained in:
wukko
2024-11-18 16:30:27 +06:00
parent 4a70f09017
commit 2b2bc57331
2 changed files with 4 additions and 5 deletions

View File

@@ -1,7 +1,6 @@
import { get } from "svelte/store";
import env, { apiURL } from "$lib/env";
import settings from "$lib/state/settings";
import env, { defaultApiURL } from "$lib/env";
export const currentApiURL = () => {
const processingSettings = get(settings).processing;
@@ -15,5 +14,5 @@ export const currentApiURL = () => {
return new URL(env.DEFAULT_API).origin;
}
return new URL(apiURL).origin;
return new URL(defaultApiURL).origin;
}