file: protocol updates
This commit is contained in:
parent
2bcdb07b62
commit
dc85c66052
@ -141,7 +141,9 @@ export default class Dapp extends Component {
|
|||||||
? app.id
|
? app.id
|
||||||
: this.context.api.sha3(app.url);
|
: 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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user