Ignore errors from dappsUrl when starting UI. (#6296)

* Ignore errors from dappsUrl when starting UI.

* Fix linter.
This commit is contained in:
Tomasz Drwięga 2017-08-18 15:51:52 +02:00 committed by Nicolas Gotchac
parent 2129edaae9
commit cd0c77dc5c

View File

@ -325,7 +325,8 @@ export default class SecureApi extends Api {
_fetchSettings () {
return Promise
.all([
this._uiApi.parity.dappsUrl(),
// ignore dapps disabled errors
this._uiApi.parity.dappsUrl().catch(() => null),
this._uiApi.parity.wsUrl()
])
.then(([dappsUrl, wsUrl]) => {