jellyfish-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;
});
}