File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed
Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @gitbook/integration-marketo ' : patch
3+ ' @gitbook/integration-mermaid ' : patch
4+ ' @gitbook/integration-runkit ' : patch
5+ ---
6+
7+ Fix an issue where certain integrations which rely on iframes could render incorrectly in the preview.
Original file line number Diff line number Diff line change 1- const gitbookWebFrame = window . top ;
1+ const gitbookWebFrame = window . parent ;
22const params = new URLSearchParams ( window . location . search ) ;
33const formId = params . get ( 'formId' ) ;
44const munchkinId = params . get ( 'munchkinId' ) ;
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ export default createIntegration({
126126 }
127127
128128 function sendAction(action) {
129- window.top .postMessage(
129+ window.parent .postMessage(
130130 {
131131 action,
132132 },
Original file line number Diff line number Diff line change 1- const gitbookWebFrame = window . top ;
1+ const gitbookWebFrame = window . parent ;
22
33let readOnly = false ;
44let runKitNotebook : NotebookEmbed | null = null ;
You can’t perform that action at this time.
0 commit comments