Skip to content

Commit

Permalink
fix: incorecct type
Browse files Browse the repository at this point in the history
  • Loading branch information
syusui-s authored Jan 25, 2025
1 parent 71585c1 commit fec8bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/ogp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const shouldAccessDirectly = (urlString: string): boolean => {
export const buildUrl = (urlString: string): string => {
if (shouldAccessDirectly(urlString)) return urlString;
const url = new URL('https://corsproxy.io/');
url.search = new URLSearchParams({ url: urlString });
url.search = new URLSearchParams({ url: urlString }).toString();
return url.toString();
};

Expand Down

0 comments on commit fec8bf6

Please sign in to comment.