mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 08:41:37 +00:00
Remove script
This commit is contained in:
@ -21,22 +21,6 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) {
|
||||
<meta name="keywords" content="Blog RUA" />
|
||||
<meta name="description" content="Personal blog." />
|
||||
<meta name="author" content="Arthur,i@rua.plus" />
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
if (
|
||||
localStorage.getItem('rua-theme') === 'dark' ||
|
||||
(!('rua-theme' in localStorage) &&
|
||||
window.matchMedia('(prefers-color-scheme: dark)').matches)
|
||||
) {
|
||||
document.documentElement.classList.add('dark');
|
||||
localStorage.setItem('rua-theme', 'dark');
|
||||
} else {
|
||||
document.documentElement.classList.remove('dark');
|
||||
localStorage.setItem('rua-theme', 'light');
|
||||
}`,
|
||||
}}
|
||||
/>
|
||||
<title>RUA</title>
|
||||
</Head>
|
||||
|
||||
|
Reference in New Issue
Block a user