only load the config once per session
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
let data;
|
||||
|
||||
function getConfig() {
|
||||
if (data) return Promise.resolve(data);
|
||||
return fetch("/config.json?nocache=" + new Date().getUTCMilliseconds()).then(function (response) {
|
||||
return response.json();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user