mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-29 10:12:34 -04:00
Apply dark mode css on DOM content creation as otherwise it sometimes fails
This commit is contained in:
@@ -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);
|
||||
} })();
|
||||
''' % (
|
||||
|
||||
Reference in New Issue
Block a user