Skip to content

Commit

Permalink
fix(clerk-js): Fix new URL constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
igneel64 committed Jun 6, 2022
1 parent bb1d6cc commit d0cc743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/clerk-js/src/utils/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export function buildURL(params: BuildURLParams, options: BuildURLOptions<boolea
fallbackBase = 'http://react-native-fake-base-url';
}

const url = new URL(base || fallbackBase);
const url = new URL(base || '', fallbackBase);
Object.assign(url, rest);

// Treat that hash part of the main URL as if it's another URL with a pathname and a search.
Expand Down

0 comments on commit d0cc743

Please sign in to comment.