Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Remove 127.0.0.1 references #3303

Merged
merged 1 commit into from
Nov 9, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion js/src/secureApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
6 changes: 3 additions & 3 deletions js/src/views/Dapps/Summary/summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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 (
Expand Down