fix for flicker on load

This commit is contained in:
Jake
2021-06-08 14:34:19 -07:00
committed by mDuo13
parent c458dcc740
commit d435f9d03b

View File

@@ -1,7 +1,7 @@
// Check user prefers color, toggle light/dark, save state
// Based partly on https://github.com/vinorodrigues/bootstrap-dark
$(document).ready(function() {
//////// NOTES
// On mac the system will be either light, dark or auto. Auto will return either light or dark and NOT no preference.
@@ -48,6 +48,8 @@ $(document).ready(function() {
// update every time it changes
if (window.matchMedia) window.matchMedia("(prefers-color-scheme: dark)").addListener( update_color_scheme_css );
$(document).ready(function() {
// toggle button click code
$("#css-toggle-btn").bind("click", function() {