mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Apply dark mode css on DOM content creation as otherwise it sometimes fails
This commit is contained in:
parent
ff086a69bb
commit
2baff1954d
@ -269,8 +269,8 @@ def create_profile():
|
||||
document.body.style.color = dark_fg;
|
||||
}
|
||||
}
|
||||
apply_css();
|
||||
apply_dark_mode();
|
||||
document.addEventListener("DOMContentLoaded", apply_css);
|
||||
document.addEventListener("DOMContentLoaded", apply_dark_mode);
|
||||
} })();
|
||||
''' % (
|
||||
|
Loading…
x
Reference in New Issue
Block a user