(toolKey)
| 775 | } |
| 776 | |
| 777 | function 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 | |
| 786 | function refreshEmbeddedToolHrefs() { |
| 787 | // Make right-click "Open in new tab" (and the overlay button) open the *embedded* themed variant. |
no outgoing calls
no test coverage detected