We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cd6d95a + b562173 commit b0ee542Copy full SHA for b0ee542
client/modules/IDE/pages/IDEView.jsx
@@ -123,6 +123,11 @@ class IDEView extends React.Component {
123
this.autosaveInterval = null;
124
}
125
126
+ getTitle = () => {
127
+ const { id } = this.props.project;
128
+ return id ? `p5.js Web Editor | ${this.props.project.name}` : 'p5.js Web Editor';
129
+ }
130
+
131
isUserOwner() {
132
return this.props.project.owner && this.props.project.owner.id === this.props.user.id;
133
@@ -203,7 +208,7 @@ class IDEView extends React.Component {
203
208
return (
204
209
<div className="ide">
205
210
<Helmet>
206
- <title>p5.js Web Editor | {this.props.project.name}</title>
211
+ <title>{this.getTitle()}</title>
207
212
</Helmet>
213
{this.props.toast.isVisible && <Toast />}
214
<Nav
0 commit comments