Skip to content

Commit fd406bb

Browse files
author
Ives van Hoorne
committed
Tweaks for SEO
1 parent 03f6aa5 commit fd406bb

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/app/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta name="description" content="A platform for building and sharing React projects." />
88
<link rel="shortcut icon" href="./favicon.ico">
99
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Source+Code+Pro:500" rel="stylesheet">
10-
<title>CodeSandbox - React Playground</title>
10+
<title>Editor - CodeSandbox</title>
1111
<script>
1212
(function (i, s, o, g, r, a, m) {
1313
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
@@ -35,4 +35,4 @@
3535
-->
3636
</body>
3737

38-
</html>
38+
</html>

src/app/pages/SandboxView/Sandbox/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class SandboxPage extends React.PureComponent {
7474
state = { notFound: false };
7575

7676
render() {
77-
const { match, sandbox } = this.props;
77+
const { sandbox } = this.props;
7878
if (this.state.notFound) {
7979
return (
8080
<Title>
@@ -86,7 +86,7 @@ class SandboxPage extends React.PureComponent {
8686

8787
document.title = sandbox.title
8888
? `${sandbox.title} - CodeSandbox`
89-
: 'CodeSandbox';
89+
: 'Editor - CodeSandbox';
9090

9191
return (
9292
<Switch>

src/sandbox/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
7-
<title>Sandbox</title>
7+
<title>Sandbox - CodeSandbox</title>
88
</head>
99

1010
<body>
@@ -21,4 +21,4 @@
2121
<div id="app"></div>
2222
</body>
2323

24-
</html>
24+
</html>

src/sandbox/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ async function compile(message) {
111111
}
112112

113113
try {
114-
document.body.innerHTML = '';
114+
document.body.innerHTML = '<div id="root"></div>';
115115
deleteCache(changedModule);
116116

117117
const evalled = evalModule(module, modules, directories, manifest);

0 commit comments

Comments
 (0)