Fix :NaN port returned by dappsUrl
This commit is contained in:
parent
1b7c90e9e1
commit
339f63a61a
@ -82,7 +82,7 @@ export default class SecureApi extends Api {
|
||||
|
||||
return {
|
||||
host,
|
||||
port: parseInt(port, 10)
|
||||
port: port ? parseInt(port, 10) : null
|
||||
};
|
||||
}
|
||||
|
||||
@ -93,7 +93,9 @@ export default class SecureApi extends Api {
|
||||
get dappsUrl () {
|
||||
const { port } = this._dappsAddress;
|
||||
|
||||
return `${this.protocol()}//${this.hostname}:${port}`;
|
||||
return port
|
||||
? `${this.protocol()}//${this.hostname}:${port}`
|
||||
: `${this.protocol()}//${this.hostname}`;
|
||||
}
|
||||
|
||||
get hostname () {
|
||||
|
Loading…
Reference in New Issue
Block a user