Skip to content

Commit 9a13525

Browse files
author
Ives van Hoorne
committed
Client cache fixe
1 parent a28f16b commit 9a13525

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/components/sandbox/Preview/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export default class Preview extends React.PureComponent {
166166
};
167167

168168
handleMessage = (e: Object) => {
169-
if (e.data.type === 'Ready!') {
169+
if (e.data === 'Ready!') {
170170
this.setState({
171171
frameInitialized: true,
172172
});

src/sandbox/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function getIndexHtml(modules) {
4545
}
4646

4747
function sendReady() {
48-
window.parent.postMessage({ type: 'Ready!' }, host);
48+
window.parent.postMessage('Ready!', host);
4949
}
5050

5151
function initializeResizeListener() {

0 commit comments

Comments
 (0)