diff --git a/src/routes/safe/components/Apps/appsList.js b/src/routes/safe/components/Apps/appsList.js index a7bcf7a0..b69b9ccc 100644 --- a/src/routes/safe/components/Apps/appsList.js +++ b/src/routes/safe/components/Apps/appsList.js @@ -1,11 +1,15 @@ // @flow import appsIconSvg from '../Transactions/TxsTable/TxType/assets/appsIcon.svg' +const appsUrl = process.env.REACT_APP_GNOSIS_APPS_URL + ? process.env.REACT_APP_GNOSIS_APPS_URL + : 'https://gnosis-apps.netlify.com' + const appList = [ { id: '1', name: 'Compound', - url: process.env.REACT_APP_GNOSIS_APPS_URL || 'https://gnosis-apps.netlify.com', + url: `${appsUrl}/compound`, iconUrl: 'https://compound.finance/images/compound-mark.svg', description: '', providedBy: { name: 'Gnosis', url: '' }, @@ -13,7 +17,7 @@ const appList = [ { id: '2', name: 'ENS Manager', - url: '', + url: `${appsUrl}/ens`, iconUrl: 'https://app.ens.domains/static/media/ensIconLogo.4d995d23.svg', description: '', providedBy: { name: 'Gnosis', url: '' }, @@ -21,24 +25,24 @@ const appList = [ { id: '3', name: 'Uniswap', - url: '', + url: `${appsUrl}/uniswap`, iconUrl: 'https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/spaces%2F-LNun-MDdANv-PeRglM0%2Favatar.png?generation=1538584950851432&alt=media', description: '', providedBy: { name: 'Gnosis', url: '' }, }, - { - id: '4', - name: 'Nexus Mutual', - url: '', - iconUrl: - 'https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/spaces%2F-LK136DM17k-0Gl82Q9B%2Favatar.png?generation=1534411701476772&alt=media', - description: '', - providedBy: { - name: 'Gnosis', - url: '', - }, - }, + // { + // id: '4', + // name: 'Nexus Mutual', + // url: '', + // iconUrl: + // 'https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/spaces%2F-LK136DM17k-0Gl82Q9B%2Favatar.png?generation=1534411701476772&alt=media', + // description: '', + // providedBy: { + // name: 'Gnosis', + // url: '', + // }, + // }, ] export default appList diff --git a/src/routes/safe/components/Apps/index.jsx b/src/routes/safe/components/Apps/index.jsx index 4098c55d..4aec21df 100644 --- a/src/routes/safe/components/Apps/index.jsx +++ b/src/routes/safe/components/Apps/index.jsx @@ -121,7 +121,7 @@ function Apps({ return } - if (origin !== getSelectedApp().url) { + if (!getSelectedApp().url.includes(origin)) { console.error(`Message from ${origin} is different to the App URL ${getSelectedApp().url}`) return }