mirror of
https://github.com/wukko/cobalt.git
synced 2025-04-30 06:24:25 +02:00
web/env: rename apiURL
to defaultApiURL
references to it are now easier to read and understand
This commit is contained in:
parent
4a70f09017
commit
2b2bc57331
@ -1,7 +1,6 @@
|
|||||||
import { get } from "svelte/store";
|
import { get } from "svelte/store";
|
||||||
|
|
||||||
import env, { apiURL } from "$lib/env";
|
|
||||||
import settings from "$lib/state/settings";
|
import settings from "$lib/state/settings";
|
||||||
|
import env, { defaultApiURL } from "$lib/env";
|
||||||
|
|
||||||
export const currentApiURL = () => {
|
export const currentApiURL = () => {
|
||||||
const processingSettings = get(settings).processing;
|
const processingSettings = get(settings).processing;
|
||||||
@ -15,5 +14,5 @@ export const currentApiURL = () => {
|
|||||||
return new URL(env.DEFAULT_API).origin;
|
return new URL(env.DEFAULT_API).origin;
|
||||||
}
|
}
|
||||||
|
|
||||||
return new URL(apiURL).origin;
|
return new URL(defaultApiURL).origin;
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ const docs = {
|
|||||||
apiLicense: "https://github.com/imputnet/cobalt/blob/main/api/LICENSE",
|
apiLicense: "https://github.com/imputnet/cobalt/blob/main/api/LICENSE",
|
||||||
};
|
};
|
||||||
|
|
||||||
const apiURL = "https://api.cobalt.tools";
|
const defaultApiURL = "https://api.cobalt.tools";
|
||||||
|
|
||||||
export { donate, apiURL, contacts, partners, siriShortcuts, docs };
|
export { donate, defaultApiURL, contacts, partners, siriShortcuts, docs };
|
||||||
export default variables;
|
export default variables;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user