Demo mode: automatically connect as demo user
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user