1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix forgotten await and warn

This commit is contained in:
MrTimscampi 2020-08-09 14:24:59 +02:00
parent e6159a22d8
commit 862489c73d

View file

@ -31,7 +31,7 @@ async function getDefaultConfig() {
throw new Error('network response was not ok');
}
data = response.json();
data = await response.json();
return data;
} catch (error) {
console.error('failed to fetch the default web config file:', error);
@ -49,7 +49,6 @@ export function getMultiServer() {
export function getThemes() {
return getConfig().then(config => {
console.warn(config.themes);
return config.themes;
}).catch(error => {
console.log('cannot get web config:', error);