(theme)
| 818 | } |
| 819 | |
| 820 | function syncEmbeddedToolTheme(theme) { |
| 821 | if (!toolOverlay) return; |
| 822 | // Sync to any loaded frames; this keeps them consistent even while hidden. |
| 823 | const frames = [toolFramePixelForge, toolFrameBitCanvas, toolFrameTftGif].filter(Boolean); |
| 824 | frames.forEach((frame) => { |
| 825 | try { |
| 826 | frame.contentWindow?.postMessage({ type: "displaykitTheme", theme }, "*"); |
| 827 | } catch { |
| 828 | // ignore |
| 829 | } |
| 830 | }); |
| 831 | } |
| 832 | |
| 833 | function requestToolExport(toolKey) { |
| 834 | const frame = getToolFrameEl(toolKey); |
no outgoing calls
no test coverage detected