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:
parent
e6159a22d8
commit
862489c73d
1 changed files with 1 additions and 2 deletions
|
@ -31,7 +31,7 @@ async function getDefaultConfig() {
|
||||||
throw new Error('network response was not ok');
|
throw new Error('network response was not ok');
|
||||||
}
|
}
|
||||||
|
|
||||||
data = response.json();
|
data = await response.json();
|
||||||
return data;
|
return data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('failed to fetch the default web config file:', error);
|
console.error('failed to fetch the default web config file:', error);
|
||||||
|
@ -49,7 +49,6 @@ export function getMultiServer() {
|
||||||
|
|
||||||
export function getThemes() {
|
export function getThemes() {
|
||||||
return getConfig().then(config => {
|
return getConfig().then(config => {
|
||||||
console.warn(config.themes);
|
|
||||||
return config.themes;
|
return config.themes;
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
console.log('cannot get web config:', error);
|
console.log('cannot get web config:', error);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue