We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b74200 commit 160af7aCopy full SHA for 160af7a
packages/app/src/app/components/Preview/index.js
@@ -360,7 +360,12 @@ class BasePreview extends React.Component<Props, State> {
360
handleMessage = (data: Object, source: any) => {
361
if (data && data.codesandbox) {
362
if (data.type === 'initialized' && source) {
363
- registerFrame(source, frameUrl(this.props.sandbox.id));
+ registerFrame(
364
+ source,
365
+ this.serverPreview
366
+ ? getSSEUrl(this.props.sandbox.id)
367
+ : frameUrl(this.props.sandbox.id)
368
+ );
369
370
if (!this.state.frameInitialized && this.props.onInitialized) {
371
this.disposeInitializer = this.props.onInitialized(this);
0 commit comments