Skip to content

Commit

Permalink
BackendApi: remove cloud IDE hack warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dmstern committed Nov 18, 2018
1 parent 9e48368 commit 14fe963
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/services/BackendApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,7 @@ export default class BackendApi {
private baseURL: string;

private constructor() {
let cloudPort;
try {
cloudPort = require('../../.backend').port;
} catch (e) {
cloudPort = undefined;
}
this.baseURL = `//${document.location ? document.location.hostname : 'localhost'}:${cloudPort ||
'30001'}`;
this.baseURL = `//${document.location ? document.location.hostname : 'localhost'}:30001`;
this.axios = axios.create({
baseURL: this.baseURL,
});
Expand Down

0 comments on commit 14fe963

Please sign in to comment.