(toolKey)
| 831 | } |
| 832 | |
| 833 | function requestToolExport(toolKey) { |
| 834 | const frame = getToolFrameEl(toolKey); |
| 835 | if (!frame?.contentWindow) return; |
| 836 | try { |
| 837 | frame.contentWindow.postMessage({ type: "requestExport", tool: toolKey }, "*"); |
| 838 | } catch { |
| 839 | // ignore |
| 840 | } |
| 841 | } |
| 842 | |
| 843 | function setToolOverlayAction(toolKey) { |
| 844 | activeEmbeddedToolKey = toolKey; |