Update src/App.tsx
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user