Skip to content

Commit

Permalink
fix: leading dot for domain check
Browse files Browse the repository at this point in the history
  • Loading branch information
0xPenryn committed Jan 19, 2024
1 parent 75fdacd commit 80c59d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/lib/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function validate_bridge_url(bridge_url: string, is_staging?: boolean): V
}

// remove once restriction lifted in world app
if (!test_url.hostname.endsWith('worldcoin.org') && !test_url.hostname.endsWith('toolsforhumanity.com')) {
if (!test_url.hostname.endsWith('.worldcoin.org') && !test_url.hostname.endsWith('.toolsforhumanity.com')) {
console.warn(
"Bridge URL should be a subdomain of worldcoin.org or toolsforhumanity.com. The user's identity wallet may refuse to connect. This is a temporary measure and may be removed in the future."
)
Expand Down

0 comments on commit 80c59d0

Please sign in to comment.