MCPcopy Create free account
hub / github.com/cifertech/DisplayKit / setActiveToolSwitchUI

Function setActiveToolSwitchUI

app.js:777–784  ·  view source on GitHub ↗
(toolKey)

Source from the content-addressed store, hash-verified

775}
776
777function setActiveToolSwitchUI(toolKey) {
778 toolSwitchButtons.forEach((btn) => {
779 const key = btn.getAttribute("data-switch-tool");
780 const active = key === toolKey;
781 btn.classList.toggle("active", active);
782 btn.setAttribute("aria-selected", active ? "true" : "false");
783 });
784}
785
786function refreshEmbeddedToolHrefs() {
787 // Make right-click "Open in new tab" (and the overlay button) open the *embedded* themed variant.

Callers 2

openEmbeddedToolFunction · 0.85
closeEmbeddedToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected