We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a28f16b commit 9a13525Copy full SHA for 9a13525
src/app/components/sandbox/Preview/index.js
@@ -166,7 +166,7 @@ export default class Preview extends React.PureComponent {
166
};
167
168
handleMessage = (e: Object) => {
169
- if (e.data.type === 'Ready!') {
+ if (e.data === 'Ready!') {
170
this.setState({
171
frameInitialized: true,
172
});
src/sandbox/index.js
@@ -45,7 +45,7 @@ function getIndexHtml(modules) {
45
}
46
47
function sendReady() {
48
- window.parent.postMessage({ type: 'Ready!' }, host);
+ window.parent.postMessage('Ready!', host);
49
50
51
function initializeResizeListener() {
0 commit comments