-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow down URL validation when adding a network or RPC #1241
Slow down URL validation when adding a network or RPC #1241
Conversation
…n-adding-a-network-or-rpc
Here's the packed extension for this build: |
@@ -277,6 +277,8 @@ const KNOWN_NETWORKS = { | |||
], | |||
}; | |||
|
|||
const parseURL = (url: string | undefined) => | |||
url && (url.startsWith('http') ? url : `https://${url}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a user enters localhost:8545
you'll autocomplete it to https://localhost:8545 which won't work so we have 2 options:
- Drop this and not add the prefix
- Add an exception for hosts
localhost
&127.0.0.1
where you only addhttp://
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm removing it for now so I can merge it
@@ -277,6 +277,8 @@ const KNOWN_NETWORKS = { | |||
], | |||
}; | |||
|
|||
const parseURL = (url: string | undefined) => | |||
url && (url.startsWith('http') ? url : `https://${url}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm removing it for now so I can merge it
…n-adding-a-network-or-rpc
Here's the packed extension for this build: |
…n-adding-a-network-or-rpc
Here's the packed extension for this build: |
…n-adding-a-network-or-rpc
Here's the packed extension for this build: |
Here's the packed extension for this build: |
Here's the packed extension for this build: |
Fixes BX-####
Figma link (if any):
What changed (plus any additional context for devs)
ups a bit the debounce delay and adds
https://
to the url if neededScreen recordings / screenshots
What to test