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

Merge pull request #1354 from MrTimscampi/fix-config-baseurl

Fix baseUrl for web config file
This commit is contained in:
dkanada 2020-06-08 03:59:26 +09:00 committed by GitHub
commit ef59ecc4b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@ let data;
function getConfig() { function getConfig() {
if (data) return Promise.resolve(data); if (data) return Promise.resolve(data);
return fetch('/config.json?nocache=' + new Date().getUTCMilliseconds()).then(response => { return fetch('config.json?nocache=' + new Date().getUTCMilliseconds()).then(response => {
data = response.json(); data = response.json();
return data; return data;
}).catch(error => { }).catch(error => {
@ -12,7 +12,7 @@ function getConfig() {
} }
function getDefaultConfig() { function getDefaultConfig() {
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;
}); });