Update 1.js

This commit is contained in:
FURK4NGG
2025-02-24 23:47:36 +03:00
committed by GitHub
parent b81045ffeb
commit 77cd677ccf
+2 -2
View File
@@ -1,6 +1,6 @@
/*CHANGE THEME*/ /*CHANGE THEME*/
const safeAreaTop = window.env('safe-area-inset-top'); const safeAreaTop = getComputedStyle(document.body).getPropertyValue('padding-top');
document.body.style.paddingTop = `${safeAreaTop}px`; 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(() => {