MCPcopy Index your code
hub / github.com/cifertech/DisplayKit / syncEmbeddedToolTheme

Function syncEmbeddedToolTheme

app.js:820–831  ·  view source on GitHub ↗
(theme)

Source from the content-addressed store, hash-verified

818}
819
820function 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
833function requestToolExport(toolKey) {
834 const frame = getToolFrameEl(toolKey);

Callers 3

openEmbeddedToolFunction · 0.85
app.jsFile · 0.85
setThemeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected