parent
63252566dc
commit
b084c80a42
|
@ -1,11 +1,15 @@
|
||||||
// @flow
|
// @flow
|
||||||
import appsIconSvg from '../Transactions/TxsTable/TxType/assets/appsIcon.svg'
|
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 = [
|
const appList = [
|
||||||
{
|
{
|
||||||
id: '1',
|
id: '1',
|
||||||
name: 'Compound',
|
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',
|
iconUrl: 'https://compound.finance/images/compound-mark.svg',
|
||||||
description: '',
|
description: '',
|
||||||
providedBy: { name: 'Gnosis', url: '' },
|
providedBy: { name: 'Gnosis', url: '' },
|
||||||
|
@ -13,7 +17,7 @@ const appList = [
|
||||||
{
|
{
|
||||||
id: '2',
|
id: '2',
|
||||||
name: 'ENS Manager',
|
name: 'ENS Manager',
|
||||||
url: '',
|
url: `${appsUrl}/ens`,
|
||||||
iconUrl: 'https://app.ens.domains/static/media/ensIconLogo.4d995d23.svg',
|
iconUrl: 'https://app.ens.domains/static/media/ensIconLogo.4d995d23.svg',
|
||||||
description: '',
|
description: '',
|
||||||
providedBy: { name: 'Gnosis', url: '' },
|
providedBy: { name: 'Gnosis', url: '' },
|
||||||
|
@ -21,24 +25,24 @@ const appList = [
|
||||||
{
|
{
|
||||||
id: '3',
|
id: '3',
|
||||||
name: 'Uniswap',
|
name: 'Uniswap',
|
||||||
url: '',
|
url: `${appsUrl}/uniswap`,
|
||||||
iconUrl:
|
iconUrl:
|
||||||
'https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/spaces%2F-LNun-MDdANv-PeRglM0%2Favatar.png?generation=1538584950851432&alt=media',
|
'https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/spaces%2F-LNun-MDdANv-PeRglM0%2Favatar.png?generation=1538584950851432&alt=media',
|
||||||
description: '',
|
description: '',
|
||||||
providedBy: { name: 'Gnosis', url: '' },
|
providedBy: { name: 'Gnosis', url: '' },
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
id: '4',
|
// id: '4',
|
||||||
name: 'Nexus Mutual',
|
// name: 'Nexus Mutual',
|
||||||
url: '',
|
// url: '',
|
||||||
iconUrl:
|
// iconUrl:
|
||||||
'https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/spaces%2F-LK136DM17k-0Gl82Q9B%2Favatar.png?generation=1534411701476772&alt=media',
|
// 'https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/spaces%2F-LK136DM17k-0Gl82Q9B%2Favatar.png?generation=1534411701476772&alt=media',
|
||||||
description: '',
|
// description: '',
|
||||||
providedBy: {
|
// providedBy: {
|
||||||
name: 'Gnosis',
|
// name: 'Gnosis',
|
||||||
url: '',
|
// url: '',
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
]
|
]
|
||||||
|
|
||||||
export default appList
|
export default appList
|
||||||
|
|
|
@ -121,7 +121,7 @@ function Apps({
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (origin !== getSelectedApp().url) {
|
if (!getSelectedApp().url.includes(origin)) {
|
||||||
console.error(`Message from ${origin} is different to the App URL ${getSelectedApp().url}`)
|
console.error(`Message from ${origin} is different to the App URL ${getSelectedApp().url}`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue