diff --git a/js/src/Dapp/dapp.js b/js/src/Dapp/dapp.js index 479157153..e645a9215 100644 --- a/js/src/Dapp/dapp.js +++ b/js/src/Dapp/dapp.js @@ -141,7 +141,9 @@ export default class Dapp extends Component { ? app.id : this.context.api.sha3(app.url); - src = `${dapphost}/dapps/${appId}/index.html`; + src = window.location.protocol === 'file:' + ? `dapps/${appId}/index.html` + : `${dapphost}/dapps/${appId}/index.html`; break; }