Skip to content

Commit

Permalink
Merge pull request #61 from helius-labs/fix-http
Browse files Browse the repository at this point in the history
Allow http://
  • Loading branch information
KoenRijpstra authored Apr 5, 2024
2 parents 1adce49 + 4d9e36e commit 479fdc5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/components/RPCMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
if (!rpcUrlValue) {
currentRPC.set("https://api.mainnet-beta.solana.com");
}
if (!rpcUrlValue.startsWith("https://") && rpcUrlValue !== "") {
if (
rpcUrlValue !== "" &&
!rpcUrlValue.startsWith("http://") &&
!rpcUrlValue.startsWith("https://")
) {
rpcUrlValue = "https://" + rpcUrlValue;
}
currentRPC.set(rpcUrlValue);
Expand Down

0 comments on commit 479fdc5

Please sign in to comment.