Skip to content

Commit

Permalink
Fixed duplicate elementId in html
Browse files Browse the repository at this point in the history
  • Loading branch information
ErisApps committed Oct 27, 2020
1 parent bc34eb9 commit f60712f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ChatCore/Resources/Web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<label class="form-label">Channels</label>
<div id="twitch-channel-container" class="my-2">
{TwitchChannelHtml}
<span id="add_twitch_channel_button" class="chip">
<span id="add_twitch_channel_button_span" class="chip">
<button id="add_twitch_channel_button" type="button" onclick="addTwitchChannel()" class="btn btn-link btn-sm" aria-label="Close" role="button">+</button>
</span>
</div>
Expand Down Expand Up @@ -106,7 +106,7 @@
span.innerHTML =
"<input type=\"text\" class=\"borderless-input\" name=\"twitch_channel\" placeholder=\"Twitch Channel\" value=\"\" />" +
"<button type=\"button\" onclick=\"removeTwitchChannel('" + channelId + "')\" class=\"btn btn-clear\" aria-label=\"Close\" role=\"button\" />";
container.insertBefore(span, document.getElementById("add_twitch_channel_button"));
container.insertBefore(span, document.getElementById("add_twitch_channel_button_span"));
//container.appendChild(span);

twitchIdCounter++
Expand All @@ -116,7 +116,7 @@
let channel = document.getElementById(channelId);
container.removeChild(channel);
}

</script>

</body>
Expand Down

0 comments on commit f60712f

Please sign in to comment.