Update 1.js
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
/*CHANGE THEME*/
|
/*CHANGE THEME*/
|
||||||
|
const safeAreaTop = window.env('safe-area-inset-top');
|
||||||
|
document.body.style.paddingTop = `${safeAreaTop}px`;
|
||||||
|
|
||||||
// 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