Add internal dark mode switching script

This commit is contained in:
Xevion
2023-02-17 03:03:56 -06:00
parent d4491464c1
commit 50b098d2cf
3 changed files with 31 additions and 0 deletions

15
src/pages/_document.tsx Normal file
View File

@@ -0,0 +1,15 @@
import {Html, Head, Main, NextScript} from 'next/document'
import Script from 'next/script'
export default function Document() {
return (
<Html>
<Head />
<body>
<Main/>
<NextScript/>
<Script strategy="beforeInteractive" id="automatic-darkmode" src="/js/darkmode.js"/>
</body>
</Html>
)
}