file: protocol updates

This commit is contained in:
Jaco Greeff 2017-09-11 14:47:34 +02:00
parent 2bcdb07b62
commit dc85c66052

View File

@ -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;
}