-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Cater for home.parity hostname in dappsUrl #3341
Conversation
@tomusdrw Can you please take a look. |
@@ -26,6 +26,7 @@ export default class SecureApi extends Api { | |||
this._connectState = sysuiToken === 'initial' ? 1 : 0; | |||
this._needsToken = false; | |||
this._dappsPort = 8080; | |||
this._dappsInterface = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could default to window.location.hostname
the additional condition in if
below would be not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. Had it that way around as a first stab. Just wanted to have additional protection against the case if we ever get null back for whatever reason. (Which would point to more serious issues, but ...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, left small suggestion.
Merged in master for test failures. |
Closes https://github.com/ethcore/parity/issues/3337