Set the toggle for the dark mode of the theme sample.
It automatically responds to the dark mode according to the user's system.
The problem is that the toggle doesn't work properly in the main page header.
It works only in the sticky menu.
In other words, even if the system is in dark mode, the dark mode css works, but that toggle does not work, and if it changes to the sticky menu, it is displayed normally.
Where do I need to modify it to make it appear properly?
top code
[](#modal-register)
[](#)
[](#)
js code
jQuery('.dark-mode').on( 'click', function() {
jQuery("body").toggleClass('dark');
SEMICOLON.header.logo();
return false;
});
