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

18 lines
388 B
JavaScript
Raw Normal View History

2020-02-16 12:17:13 +09:00
define(['appStorage', 'events'], function (appStorage, events) {
'use strict';
var data = {};
function WebSettings() {
fetch("/config.json").then(function (response) {
data = response.json();
})
2020-02-16 12:17:13 +09:00
}
2020-02-19 22:39:22 +09:00
WebSettings.prototype.enableMultiServer = function () {
return data.multiServer || false;
2020-02-16 12:17:13 +09:00
};
return new WebSettings();
});