Skip to content

Commit

Permalink
Apparently next scripts can't be async
Browse files Browse the repository at this point in the history
Reverting to traditional script tag
  • Loading branch information
EvieePy authored Aug 29, 2022
1 parent d824ac8 commit d56a9b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mystbin/frontend/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Script from "next/script";

function MyApp({ Component, pageProps }) {
return(<>
<Script async={"async"} src={"https://media.ethicalads.io/media/client/ethicalads.min.js"} strategy={"beforeInteractive"}/>
<script async src={"https://media.ethicalads.io/media/client/ethicalads.min.js"}/>
<Component {...pageProps} />;
</>)
}
Expand Down

0 comments on commit d56a9b0

Please sign in to comment.