Skip to content

Commit 20fb6f8

Browse files
run actual url in state
1 parent b82d618 commit 20fb6f8

File tree

1 file changed

+1
-1
lines changed
  • packages/common/src/components/Preview

1 file changed

+1
-1
lines changed

packages/common/src/components/Preview/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ class BasePreview extends React.Component<Props, State> {
585585
<StyledFrame
586586
sandbox="allow-forms allow-scripts allow-same-origin allow-modals allow-popups allow-presentation"
587587
allow="geolocation; microphone; camera;midi; vr; accelerometer; gyroscope; payment; ambient-light-sensor; encrypted-media; usb"
588-
src={this.currentUrl()}
588+
src={this.state.url}
589589
ref={this.setIframeElement}
590590
title={getSandboxName(sandbox)}
591591
id="sandbox-preview"

0 commit comments

Comments
 (0)