Skip to content

Commit fc9dcb7

Browse files
authored
change key accessor
1 parent db419af commit fc9dcb7

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

rcos-status/index.js

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
const m = {
2-
webpage: {
3-
hrn: "Webpage",
4-
link: "https://new.rcos.io",
5-
},
6-
users: {
7-
hrn: "Users",
8-
link: "https://new.rcos.io/users",
9-
},
10-
projects: {
11-
hrn: "Projects",
12-
link: "https://new.rcos.io/projects",
13-
},
14-
meetings: {
15-
hrn: "Meetings",
16-
link: "https://new.rcos.io/meetings",
17-
},
18-
small_groups: {
19-
hrn: "Small Groups",
20-
link: "https://new.rcos.io/small_groups",
21-
},
22-
organizations: {
23-
hrn: "Organizations",
24-
link: "https://new.rcos.io/organizations",
25-
},
26-
};
27-
28-
Object.keys(m).map((k) => {
29-
fetch(m[k]["link"]).then((response) => {
30-
document.querySelector(`.${k}.status`).innerText = response.status;
31-
});
32-
});
1+
const m = {
2+
webpage: {
3+
hrn: "Webpage",
4+
link: "https://new.rcos.io",
5+
},
6+
users: {
7+
hrn: "Users",
8+
link: "https://new.rcos.io/users",
9+
},
10+
projects: {
11+
hrn: "Projects",
12+
link: "https://new.rcos.io/projects",
13+
},
14+
meetings: {
15+
hrn: "Meetings",
16+
link: "https://new.rcos.io/meetings",
17+
},
18+
small_groups: {
19+
hrn: "Small Groups",
20+
link: "https://new.rcos.io/small_groups",
21+
},
22+
organizations: {
23+
hrn: "Organizations",
24+
link: "https://new.rcos.io/organizations",
25+
},
26+
};
27+
28+
Object.keys(m).map(k => {
29+
fetch(m[k].link).then((response)=>{
30+
document.querySelector(`.${k}.status`).innerText = response.status;
31+
});
32+
})

0 commit comments

Comments
 (0)