Skip to content

Commit

Permalink
Fix session param removal
Browse files Browse the repository at this point in the history
  • Loading branch information
laymonage committed Nov 20, 2021
1 parent 8d17370 commit d5b9655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function getThemeUrl(resolvedTheme: Theme, theme: Theme): Theme {
export function getOriginHost(origin: string) {
try {
const url = new URL(origin);
url.searchParams.delete('session');
url.searchParams.delete('giscus');
return { origin: url.toString(), originHost: url.origin };
} catch (err) {
return { origin: '', originHost: '' };
Expand Down

1 comment on commit d5b9655

@vercel
Copy link

@vercel vercel bot commented on d5b9655 Nov 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.