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

move console warning to catch block

This commit is contained in:
dkanada 2020-05-13 10:50:04 +09:00 committed by GitHub
parent f7c692d14e
commit ee82cbba87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,12 +6,12 @@ function getConfig() {
data = response.json();
return data;
}).catch(error => {
console.warn('web config file is missing so the template will be used');
return getDefaultConfig();
});
}
function getDefaultConfig() {
console.warn('web config file is missing so the template will be used');
return fetch('/config.template.json').then(function (response) {
data = response.json();
return data;