diff --git a/includes/inc/bs4-js.php b/includes/inc/bs4-js.php index 796b10b..90f53a6 100644 --- a/includes/inc/bs4-js.php +++ b/includes/inc/bs4-js.php @@ -930,8 +930,8 @@ function aui_flip_color_scheme_on_scroll($value, $iframe){ cs_scroll = 'navbar-light'; } - navbar.dataset.cso = cs_original - navbar.dataset.css = cs_scroll + navbar.dataset.cso = cs_original; + navbar.dataset.css = cs_scroll; } if($value > 0 ){ diff --git a/includes/inc/bs5-js.php b/includes/inc/bs5-js.php index bedc95c..4169d70 100644 --- a/includes/inc/bs5-js.php +++ b/includes/inc/bs5-js.php @@ -1033,8 +1033,8 @@ function aui_flip_color_scheme_on_scroll($value, $iframe){ cs_scroll = 'navbar-light'; } - navbar.dataset.cso = cs_original - navbar.dataset.css = cs_scroll + navbar.dataset.cso = cs_original; + navbar.dataset.css = cs_scroll; } if($value > 0 || navbar.classList.contains('nav-menu-open') ){