Skip to content

Commit 87229e8

Browse files
committed
Give preview title of the sandbox if available
Fixes codesandbox#1598
1 parent 0e0c81a commit 87229e8

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ class BasePreview extends React.Component<Props, State> {
798798
: frameUrl(sandbox.id, this.initialPath)
799799
}
800800
id="sandbox"
801-
title={sandbox.id}
801+
title={sandbox.title || sandbox.id}
802802
hideNavigation={!showNavigation}
803803
style={{
804804
...style,

0 commit comments

Comments
 (0)