Skip to content

Commit f9ffbad

Browse files
authored
Enable new domain at Gnosis package (#1347)
1 parent 9c01cac commit f9ffbad

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

packages/gnosis/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/gnosis",
3-
"version": "2.1.4",
3+
"version": "2.1.5-alpha.1",
44
"description": "Gnosis Safe module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
55
"keywords": [
66
"Ethereum",

packages/gnosis/src/icon.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default `
2-
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 440 440">
3-
<path d="M220,9.82C103.92,9.82,9.82,103.92,9.82,220S103.92,430.18,220,430.18,430.18,336.08,430.18,220,336.08,9.82,220,9.82ZM373.83,231.47H276.3a59.41,59.41,0,1,1,.45-20.67h97.08a10.34,10.34,0,1,1,0,20.67Z"/>
2+
<svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
3+
<path d="M21.757 11.998h-2.485c-.742 0-1.343.579-1.343 1.293v3.47c0 .714-.602 1.293-1.344 1.293H6.699c-.743 0-1.344.578-1.344 1.292v2.391c0 .714.601 1.293 1.344 1.293h10.458c.742 0 1.335-.579 1.335-1.293V19.82c0-.714.602-1.22 1.344-1.22h1.92c.743 0 1.344-.58 1.344-1.293v-4.03c0-.714-.601-1.278-1.343-1.278ZM5.355 7.249c0-.714.6-1.293 1.343-1.293h9.88c.743 0 1.344-.579 1.344-1.293v-2.39c0-.714-.601-1.293-1.344-1.293H6.125c-.742 0-1.343.579-1.343 1.293v1.842c0 .714-.602 1.292-1.344 1.292H1.526C.784 5.407.182 5.986.182 6.7v4.034c0 .714.604 1.264 1.346 1.264h2.485c.743 0 1.344-.579 1.344-1.293L5.355 7.25ZM10.472 9.485h2.387c.778 0 1.409.608 1.409 1.356v2.296c0 .748-.632 1.356-1.41 1.356h-2.386c-.778 0-1.409-.608-1.409-1.356v-2.296c0-.749.632-1.356 1.409-1.356Z" fill="currentColor"/>
44
</svg>
55
`

packages/gnosis/src/index.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@ type GnosisOptions = {
55
}
66

77
function gnosis(options?: GnosisOptions): WalletInit {
8-
const { whitelistedDomains = [/gnosis-safe.io/] } = options || {}
8+
const { whitelistedDomains = [
9+
/^https:\/\/gnosis-safe\.io$/,
10+
/^https:\/\/app\.safe\.global$/,
11+
/^https:\/\/safe\.global$/
12+
] } = options || {}
913

1014
return () => {
1115
const loadedInIframe = window.self !== window.top
1216

1317
return loadedInIframe
1418
? {
15-
label: 'Gnosis Safe',
19+
label: 'Safe',
1620
getIcon: async () => (await import('./icon.js')).default,
1721
getInterface: async () => {
1822
const { default: SafeAppsSDK } = await import(
@@ -44,7 +48,7 @@ function gnosis(options?: GnosisOptions): WalletInit {
4448

4549
if (!safe) {
4650
throw new Error(
47-
`App must be loaded in a Safe App context, head to <a href="https://gnosis-safe.io/app">the Gnosis Safe App<a/> and open this website as an app.`
51+
`App must be loaded in a Safe App context, head to <a href="https://gnosis-safe.io/app">the Safe</a> and open this website as an app.`
4852
)
4953
}
5054

0 commit comments

Comments
 (0)