Skip to content

Commit

Permalink
remove ads
Browse files Browse the repository at this point in the history
  • Loading branch information
Jdyn committed May 11, 2024
1 parent 76a0695 commit 328643a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 27 deletions.
52 changes: 27 additions & 25 deletions components/Shared/Adsense/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,34 @@ const Adsense = ({
format,
path
}: Props): JSX.Element => {
useEffect(() => {
try {
((window as any).adsbygoogle = (window as any).adsbygoogle || []).push({});
} catch (e) {
// catch
}
}, []);
// useEffect(() => {
// try {
// ((window as any).adsbygoogle = (window as any).adsbygoogle || []).push({});
// } catch (e) {
// // catch
// }
// }, []);

return (
<section className={className}>
<div id={slot} key={path} className={styles.root}>
<ins
key={path}
id="gad"
className="adsbygoogle"
style={style}
data-ad-client={client}
data-ad-slot={slot}
data-ad-layout={layout}
data-ad-layout-key={layoutKey}
data-ad-format={format}
data-full-width-responsive={false}
/>
</div>
</section>
);
// return (
// <section className={className}>
// <div id={slot} key={path} className={styles.root}>
// <ins
// key={path}
// id="gad"
// className="adsbygoogle"
// style={style}
// data-ad-client={client}
// data-ad-slot={slot}
// data-ad-layout={layout}
// data-ad-layout-key={layoutKey}
// data-ad-format={format}
// data-full-width-responsive={false}
// />
// </div>
// </section>
// );

return null;
};

Adsense.defaultProps = {
Expand Down
4 changes: 2 additions & 2 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ class MyDocument extends Document {
return (
<Html lang="en">
<Head>
<script
{/* <script
data-ad-client="ca-pub-3148839588626786"
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"
/>
/> */}
<meta
name="keywords"
content="typer,typing,typerio,race with friends,free typing games,typing,typing test,wpm,typing software,typing game,typing practice,free typing program,best typing game,typing skills,free typing test"
Expand Down

0 comments on commit 328643a

Please sign in to comment.