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.
*/
export function useSettingsConfig() {
async function load(url = '/settings.json') {
async function load() {
loading.value = true;
error.value = null;
try {
config.value = await loadSettingsConfig(url);
config.value = await loadSettingsConfig();
} catch (e) {
error.value = e.message;
config.value = null;