Skip to content

Commit

Permalink
dont use urlsearchparams
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardo-devis-agullo committed May 4, 2024
1 parent fcdaffe commit d21aa1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import UwuLogoUrl from "@site/static/img/uwulogo.png";

function HomepageHeader() {
const { siteConfig } = useDocusaurusContext();
const uwu = new URLSearchParams(window.location.search).get("uwu") !== null;
const uwu = window.location.search.includes("uwu");

return (
<header className={clsx("hero hero--primary", styles.heroBanner)}>
Expand Down

0 comments on commit d21aa1d

Please sign in to comment.