Update src/App.tsx

This commit is contained in:
2026-07-04 15:04:14 +00:00
parent 361805fdae
commit c248a4ae67

View File

@@ -143,10 +143,10 @@ function useRenderProbe() {
}
// Selection bridge: Alt+click on a `[data-webild-section]` block posts the
// section name to the parent (Webild editor) so the next /edit request can
// be scoped surgically. Sandbox-only — the Webild editor is the parent;
// section name to the parent (VisionWeb editor) so the next /edit request can
// be scoped surgically. Sandbox-only — the VisionWeb editor is the parent;
// public visitors hitting the deployed site never trigger this.
function useWebildSelectionBridge() {
function useVisionWebSelectionBridge() {
useEffect(() => {
if (typeof window === 'undefined') return
if (window.parent === window) return
@@ -203,7 +203,7 @@ function useExternalLinksNewTab() {
}
function App() {
useWebildSelectionBridge()
useVisionWebSelectionBridge()
useExternalLinksNewTab()
useRenderProbe()
return (