Update 1.js

This commit is contained in:
FURK4NGG
2025-02-20 17:54:19 +03:00
committed by GitHub
parent 41c84bd06a
commit a549d3f43b
+1 -1
View File
@@ -1,7 +1,7 @@
function setThemeColor() {
const metaThemeColor = document.querySelector('meta[name="theme-color"]');
const isDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;
metaThemeColor.setAttribute('content', isDarkMode ? '#000000' : '#100f2c');
metaThemeColor.setAttribute('content', isDarkMode ? '#100f2c' : '#100f2c');
}
setThemeColor();