feat(settings): Remove parameter 'url' from the loading function of the settings composable

This commit is contained in:
2026-05-26 19:55:45 +02:00
committed by Gitea
parent 34a7cb3f2c
commit b47ab0355e
@@ -26,11 +26,11 @@ const loading = ref(false);
* The config is loaded once and shared across all consumers. * The config is loaded once and shared across all consumers.
*/ */
export function useSettingsConfig() { export function useSettingsConfig() {
async function load(url = '/settings.json') { async function load() {
loading.value = true; loading.value = true;
error.value = null; error.value = null;
try { try {
config.value = await loadSettingsConfig(url); config.value = await loadSettingsConfig();
} catch (e) { } catch (e) {
error.value = e.message; error.value = e.message;
config.value = null; config.value = null;