Update 1.js
This commit is contained in:
@@ -1,7 +1,4 @@
|
|||||||
/*CHANGE THEME*/
|
/*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
|
// MutationObserver ile body'nin class listesini izleyelim
|
||||||
const observer = new MutationObserver(() => {
|
const observer = new MutationObserver(() => {
|
||||||
const isDark = document.body.classList.contains("darkmode--activated");
|
const isDark = document.body.classList.contains("darkmode--activated");
|
||||||
|
|||||||
Reference in New Issue
Block a user