Skip to content

Commit 9ef6bf3

Browse files
committed
use DEFAULT_CLOUD_HOST as cloudhost
1 parent 08a4d7a commit 9ef6bf3

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎src/lib/brand.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ module.exports = {
44
APP_NAME: 'CodeTorch',
55
APP_DOMAIN: 'https://codetorch.net',
66
API_HOST: 'http://localhost:8093',
7-
DEFAULT_CLOUD_HOST: 'wss://cloud.codetorch.net'
7+
DEFAULT_CLOUD_HOST: 'wss://cloudserver.codetorch.net'
88
};

‎src/playground/render-gui.jsx‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import React from 'react';
22
import GUI from '../containers/gui.jsx';
3+
import {DEFAULT_CLOUD_HOST} from '../lib/brand.js';
34

45
const searchParams = new URLSearchParams(location.search);
5-
const cloudHost = searchParams.get('cloud_host') || 'wss://clouddata.turbowarp.org';
6+
const cloudHost = DEFAULT_CLOUD_HOST;
67

7-
const creatingNewProject = new URLSearchParams(location.search).get('new_project') === '1';
8+
const creatingNewProject = searchParams.get('new_project') === '1';
89

9-
const restrictedMode = new URLSearchParams(location.search).get('onlyEditor') === '1';
10+
const restrictedMode = searchParams.get('onlyEditor') === '1';
1011

1112
const RenderGUI = props => (
1213
<GUI

0 commit comments

Comments
 (0)