Demo mode: automatically connect as demo user

This commit is contained in:
2026-02-24 19:02:38 +01:00
parent c50c6901b9
commit 18b5f0f0e1
7 changed files with 50 additions and 20 deletions

View File

@@ -34,8 +34,8 @@ function useFetch(data, error, url) {
}
}
export function getAppInfo(appInfo, appInfoErr) {
fetch('/ws/appinfo', {
export async function getAppInfo(appInfo, appInfoErr) {
return fetch('/ws/appinfo', {
method: 'GET'
}).then((res) => res.json())
.then((json) => appInfo.value = json)