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:
parent
f7c692d14e
commit
ee82cbba87
1 changed files with 1 additions and 1 deletions
|
@ -6,12 +6,12 @@ function getConfig() {
|
||||||
data = response.json();
|
data = response.json();
|
||||||
return data;
|
return data;
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
|
console.warn('web config file is missing so the template will be used');
|
||||||
return getDefaultConfig();
|
return getDefaultConfig();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDefaultConfig() {
|
function getDefaultConfig() {
|
||||||
console.warn('web config file is missing so the template will be used');
|
|
||||||
return fetch('/config.template.json').then(function (response) {
|
return fetch('/config.template.json').then(function (response) {
|
||||||
data = response.json();
|
data = response.json();
|
||||||
return data;
|
return data;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue