Skip to content

Commit 96488ec

Browse files
authored
Change script to NextJS script
1 parent 3b219b3 commit 96488ec

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

mystbin/frontend/components/Base.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,17 @@ import GitHubIcon from "@material-ui/icons/GitHub";
66
import DiscordColorIcon from "../icons/DiscordColour";
77
import TipModal from "./TipModal";
88
import Head from "next/head";
9+
import Script from 'next/script'
910

1011
export default function Base(props: PropsWithChildren<{ className: string }>) {
1112
const { children, className } = props;
1213

1314
return (
1415
<div className={styles.Base}>
1516
<Head>
16-
<title>MystBin</title>
17-
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
18-
<script
19-
async
17+
<Script
2018
src="https://media.ethicalads.io/media/client/ethicalads.min.js"
21-
></script>
19+
></Script>
2220
</Head>
2321
<div
2422
data-ea-publisher="mystbin"

0 commit comments

Comments
 (0)