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

12 lines
292 B
JavaScript
Raw Normal View History

2020-04-02 03:51:22 +09:00
function getConfig() {
return fetch("/config.json?nocache=" + new Date().getUTCMilliseconds()).then(function (response) {
return response.json();
});
}
export function enableMultiServer() {
return getConfig().then(config => {
return config.multiserver;
});
}