Skip to content
This repository was archived by the owner on Mar 23, 2022. It is now read-only.

Commit 4b9d221

Browse files
committed
FIX - Google AdSense
Signed-off-by: RaenonX <[email protected]>
1 parent 64131a0 commit 4b9d221

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

public/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
Learn how to configure a non-root public URL by running `npm run build`.
2929
-->
3030

31-
<title>龍絆攻略站 by OM</title>
31+
<title>龍絆攻略站 by OM / DL Info by OM</title>
3232

3333
<!-- react-bootstrap imports -->
3434
<script crossorigin src="https://unpkg.com/react/umd/react.production.min.js"></script>
@@ -40,7 +40,8 @@
4040
<!-- Note: bootstrap css is already imported/included via `src/bootstrap.css -->
4141

4242
<!-- Google AdSense -->
43-
<script async data-ad-client="ca-pub-1535004092052078" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
43+
<script async data-ad-client="ca-pub-1535004092052078"
44+
src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
4445

4546
<!-- Global site tag (gtag.js) - Google Analytics -->
4647
<script async src="https://www.googletagmanager.com/gtag/js?id=G-796E69CFJG"></script>

src/main.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ const PageMain = () => {
4747
// Ensure that the title has been set
4848
document.title = title.current;
4949
ref.current.innerText = title.current;
50+
51+
// Google Auto AdSense
52+
// @ts-ignore
53+
(window.adsbygoogle = window.adsbygoogle || []).push({
54+
google_ad_client: 'ca-pub-1535004092052078',
55+
enable_page_level_ads: false,
56+
});
5057
});
5158

5259
return (

0 commit comments

Comments
 (0)