Remove 127.0.0.1 references (#3303)

This commit is contained in:
Jaco Greeff 2016-11-09 14:01:59 +01:00 committed by Gav Wood
parent f568730aa8
commit 95e03f87fa
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -32,7 +32,7 @@ export default class Summary extends Component {
} }
render () { render () {
const { dappsPort } = this.context.api; const { dappsUrl } = this.context.api;
const { app } = this.props; const { app } = this.props;
if (!app) { if (!app) {
@ -41,9 +41,9 @@ export default class Summary extends Component {
let image = <div className={ styles.image }>&nbsp;</div>; let image = <div className={ styles.image }>&nbsp;</div>;
if (app.type === 'local') { 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 { } 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 ( return (