Skip to content

Commit

Permalink
restore ctc for runners
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Oct 26, 2024
1 parent 2b0c25c commit c6188cf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/copy-to-clipboard-block/ctc-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ export default class CopyToClipboardBlock extends HTMLElement {
const isActive = idx === this.selectCommandRunnerIdx ? " active" : "";
return `
<li class="command-runner${isActive}" data-runner="${runner}">
${scriptRunnerLogoMapper[runner]}
</li>
`;
<li class="command-runner${isActive}" data-runner="${runner}">
${scriptRunnerLogoMapper[runner]}
</li>
`;
})
.join("")}
</ul>
Expand Down Expand Up @@ -92,7 +92,7 @@ export default class CopyToClipboardBlock extends HTMLElement {
this.shadowRoot.appendChild(template.content.cloneNode(true));

switch (variant) {
case "runner":
case "runners":
this.shadowRoot
.querySelectorAll(".command-runner")
.forEach((item) => item.addEventListener("click", this.selectCommandRunner.bind(this)));
Expand Down

0 comments on commit c6188cf

Please sign in to comment.