fix: theme color flickering w/ critters (#191)

This commit is contained in:
Johann Schopplich authored and GitHub committed 2021-09-14 15:28:25 +08:00
1 parent 8bfe4b2060
commit 96af6b8e87
1 file changed
+3 -3
+3 -3
View File
@@ -8,9 +8,6 @@
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#00aba9">
<meta name="msapplication-TileColor" content="#00aba9">
<meta name="theme-color" content="#ffffff">
</head>
<body>
<div id="app"></div>
<script>
(function() {
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
@@ -19,6 +16,9 @@
document.documentElement.classList.toggle('dark', true)
})()
</script>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>