Update 1.js

This commit is contained in:
FURK4NGG
2025-02-24 23:51:59 +03:00
committed by GitHub
parent 77cd677ccf
commit 248c8dfa0f
-3
View File
@@ -1,7 +1,4 @@
/*CHANGE THEME*/
const safeAreaTop = getComputedStyle(document.body).getPropertyValue('padding-top');
document.body.style.paddingTop = safeAreaTop; // Dinamik olarak günceller
// MutationObserver ile body'nin class listesini izleyelim
const observer = new MutationObserver(() => {
const isDark = document.body.classList.contains("darkmode--activated");