Remove 127.0.0.1 references (#3303)

Former-commit-id: 10ff9e134bad432871f860b9e588624dedb43038
This commit is contained in:
Jaco Greeff 2016-11-09 14:01:59 +01:00 committed by Arkadiy Paronyan
parent 8660b057bf
commit e919b2d597
2 changed files with 4 additions and 4 deletions

View File

@ -122,7 +122,7 @@ export default class SecureApi extends Api {
}
get dappsUrl () {
return `http://127.0.0.1:${this._dappsPort}`;
return `http://${window.location.hostname}:${this._dappsPort}`;
}
get signerPort () {

View File

@ -32,7 +32,7 @@ export default class Summary extends Component {
}
render () {
const { dappsPort } = this.context.api;
const { dappsUrl } = this.context.api;
const { app } = this.props;
if (!app) {
@ -41,9 +41,9 @@ export default class Summary extends Component {
let image = <div className={ styles.image }>&nbsp;</div>;
if (app.type === 'local') {
image = <img src={ `http://127.0.0.1:${dappsPort}/${app.id}/${app.iconUrl}` } className={ styles.image } />;
image = <img src={ `${dappsUrl}/${app.id}/${app.iconUrl}` } className={ styles.image } />;
} else {
image = <img src={ `http://127.0.0.1:${dappsPort}${app.image}` } className={ styles.image } />;
image = <img src={ `${dappsUrl}${app.image}` } className={ styles.image } />;
}
return (