Skip to content

Commit eeaff99

Browse files
committed
Script outside of Head
1 parent 9707194 commit eeaff99

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/pages/_document.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ class MyDocument extends Document {
66
render() {
77
return (
88
<Html data-theme={DEFAULT_THEME}>
9-
<Head>
109
<Script
1110
async
1211
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6202902142885850"
1312
crossOrigin="anonymous"
1413
/>
14+
<Head>
1515
<meta
1616
name="description"
1717
content="It's time to lock in."

src/pages/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import Script from 'next/script'
1010
const Home: NextPage = () => {
1111
return (
1212
<>
13+
<Script
14+
async
15+
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6202902142885850"
16+
crossOrigin="anonymous"
17+
/>
1318
<Head>
14-
<Script
15-
async
16-
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6202902142885850"
17-
crossOrigin="anonymous"
18-
/>
1919
<title>Lock TF In</title>
2020
<meta
2121
name="description"

0 commit comments

Comments
 (0)