File tree 2 files changed +20
-6
lines changed
editor/src/app/documentRenderers/richtext
2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -86,9 +86,16 @@ export function FrameHost(props: { url: string; sessionStore: SessionStore }) {
86
86
// Methods the parent is exposing to the child
87
87
methods : methods ,
88
88
} ) ;
89
- connection . promise . then ( ( methods ) => {
90
- connectionMethods = methods ;
91
- } ) ;
89
+ console . info ( "parent window connecting to iframe" ) ;
90
+ connection . promise . then (
91
+ ( methods ) => {
92
+ console . info ( "connected to iframe succesfully" ) ;
93
+ connectionMethods = methods ;
94
+ } ,
95
+ ( e ) => {
96
+ console . error ( "connection to iframe failed" , e ) ;
97
+ } ,
98
+ ) ;
92
99
return iframe ;
93
100
} , [ props . url , props . sessionStore ] ) ;
94
101
Original file line number Diff line number Diff line change @@ -135,9 +135,16 @@ export const Frame: React.FC<Props> = observer((props) => {
135
135
// Methods child is exposing to parent
136
136
methods,
137
137
} ) ;
138
- connection . promise . then ( ( parent ) => {
139
- connectionMethods . current = parent ;
140
- } ) ;
138
+ console . info ( "iframe connecting to parent window" ) ;
139
+ connection . promise . then (
140
+ ( parent ) => {
141
+ console . info ( "connected to parent window succesfully" ) ;
142
+ connectionMethods . current = parent ;
143
+ } ,
144
+ ( e ) => {
145
+ console . error ( "connection to parent window failed" , e ) ;
146
+ } ,
147
+ ) ;
141
148
} , [ modelReceivers ] ) ;
142
149
143
150
const document = useResource ( ( ) => {
You can’t perform that action at this time.
0 commit comments