diff --git a/js/src/secureApi.js b/js/src/secureApi.js index e06e420ad..6bb9d38ea 100644 --- a/js/src/secureApi.js +++ b/js/src/secureApi.js @@ -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 () { diff --git a/js/src/views/Dapps/Summary/summary.js b/js/src/views/Dapps/Summary/summary.js index a1c9f48b6..912f1495e 100644 --- a/js/src/views/Dapps/Summary/summary.js +++ b/js/src/views/Dapps/Summary/summary.js @@ -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 =
 
; if (app.type === 'local') { - image = ; + image = ; } else { - image = ; + image = ; } return (