Update 1.js
This commit is contained in:
+3
-3
@@ -388,10 +388,10 @@ animateCircles();
|
|||||||
const themeMetaTag = document.querySelector('meta[name="theme-color"]');
|
const themeMetaTag = document.querySelector('meta[name="theme-color"]');
|
||||||
|
|
||||||
function updateThemeColor() {
|
function updateThemeColor() {
|
||||||
if (document.body.classList.contains("darkmode--activated")) {
|
if (darkmode.isActivated()) {
|
||||||
themeMetaTag.setAttribute("content", "#100f2c"); // Karanlık Mod Rengi
|
themeMetaTag.setAttribute("content", "#000000"); // Dark mode aktifken siyah renk
|
||||||
} else {
|
} else {
|
||||||
themeMetaTag.setAttribute("content", "#000000"); // Açık Mod Rengi
|
themeMetaTag.setAttribute("content", "#100f2c"); // Açık modda farklı renk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user