Skip to content

Commit 31cc321

Browse files
committed
can create a new project with ?new_project
1 parent 1118a02 commit 31cc321

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/playground/render-gui.jsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ import GUI from '../containers/gui.jsx';
44
const searchParams = new URLSearchParams(location.search);
55
const cloudHost = searchParams.get('cloud_host') || 'wss://clouddata.turbowarp.org';
66

7+
const creatingNewProject = new URLSearchParams(location.search).get('new_project') === '1';
8+
79
const RenderGUI = props => (
810
<GUI
911
cloudHost={cloudHost}
1012
canUseCloud
1113
hasCloudPermission
1214
canSave={true}
15+
canCreateNew={creatingNewProject}
1316
basePath={process.env.ROOT}
1417
canEditTitle
1518
enableCommunity

0 commit comments

Comments
 (0)