Skip to content

Commit

Permalink
uses the correct sdk url
Browse files Browse the repository at this point in the history
  • Loading branch information
tian000 committed Nov 19, 2024
1 parent 5681b10 commit 3666fd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/two-papayas-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@phantom/wallet-sdk": patch
---

Use the correct URL
2 changes: 1 addition & 1 deletion packages/sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function createPhantom(config: CreatePhantomConfig = {}) {
sdkURL.searchParams.append("colorScheme", config.colorScheme.toString());

scriptTag.setAttribute("type", "module");
scriptTag.setAttribute("src", SDK_URL);
scriptTag.setAttribute("src", sdkURL.toString());
container.insertBefore(scriptTag, container.children[0]);
container.removeChild(scriptTag);
}

0 comments on commit 3666fd6

Please sign in to comment.