diff --git a/tubearchivist/www/src/pages/_app.tsx b/tubearchivist/www/src/pages/_app.tsx index ba003d6..8cfca59 100644 --- a/tubearchivist/www/src/pages/_app.tsx +++ b/tubearchivist/www/src/pages/_app.tsx @@ -1,13 +1,41 @@ import type { AppProps } from "next/app"; import { SessionProvider } from "next-auth/react"; +import Script, { ScriptProps } from "next/script"; import "../styles/globals.css"; import "../styles/dark.css"; +// TODO: Do these scripts need to be on every page? + +type ClientOnlyScriptProps = { + src: string; +} & ScriptProps; + +const ClientOnlyScript = ({ src, ...props }: ClientOnlyScriptProps) => { + if (typeof window !== "undefined") { + return