Rename data field to "server" for consistency
This commit is contained in:
parent
283aa5513c
commit
38b4e49dfb
2 changed files with 2 additions and 2 deletions
|
@ -119,7 +119,7 @@ function channelNameElements(team, channel) {
|
|||
|
||||
function switchToChannel(client, team, channel) {
|
||||
for (let el of byId("channel_list").childNodes) {
|
||||
if (el.dataset["endpoint"] == client.endpoint && el.dataset["id"] == channel.id) {
|
||||
if (el.dataset["server"] == client.endpoint && el.dataset["id"] == channel.id) {
|
||||
el.className = "active";
|
||||
} else {
|
||||
el.className = "";
|
||||
|
|
|
@ -39,7 +39,7 @@ function populateChannelList() {
|
|||
|
||||
li.appendChild(a);
|
||||
li.dataset["id"] = channel.id;
|
||||
li.dataset["endpoint"] = client.endpoint;
|
||||
li.dataset["server"] = client.endpoint;
|
||||
nodes.push(li);
|
||||
}
|
||||
byId("channel_list").append(...nodes);
|
||||
|
|
Loading…
Reference in a new issue