mirror of
https://github.com/Kizuren/statusPage.git
synced 2025-12-21 21:16:09 +01:00
Setting config globally
This commit is contained in:
parent
d5e7af9b87
commit
958d645a98
1 changed files with 2 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
let config;
|
||||
document.addEventListener("DOMContentLoaded", async () => {
|
||||
let $main = document.querySelector('main');
|
||||
const refreshStatus = async () => {
|
||||
|
|
@ -7,6 +8,7 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|||
throw new Error(`Error fetching status.json: ${response.statusText}`);
|
||||
}
|
||||
const status = await response.json();
|
||||
config = status.config;
|
||||
console.log(status);
|
||||
for (let [siteId, endpointIds] of status.ui) {
|
||||
let site = status.sites[siteId];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue