Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
bgalek committed Feb 22, 2024
1 parent 7225973 commit ec11094
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ const HomePage: React.FunctionComponent<HomePageProps> = ({posts, jobs, events,
document.body.appendChild(script);
}, []);

const clearCookies = "document.cookie.split(\";\").forEach(function(c) { document.cookie = c.replace(/^ +/, \"\").replace(/=.*/, \"=;expires=\" + new Date().toUTCString() + \";path=/\"); });";

return (
<React.Fragment>
<Head>
Expand All @@ -48,6 +50,7 @@ const HomePage: React.FunctionComponent<HomePageProps> = ({posts, jobs, events,
<link rel="preload" href="images/splash.jpg" as="image"/>
<link rel="author" href="humans.txt"/>
<script defer data-domain="allegro.tech" src="https://plausible.io/js/script.js"></script>
<script type="text/javascript">{clearCookies}</script>
</Head>
<Header/>
<Container className="m-padding-top-24">
Expand Down

0 comments on commit ec11094

Please sign in to comment.