Apply dark mode css on DOM content creation as otherwise it sometimes fails

This commit is contained in:
Kovid Goyal 2020-07-29 23:18:11 +05:30
parent ff086a69bb
commit 2baff1954d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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);
} })();
''' % (