
        } else {
            $('.main-sidebar').removeClass('sidebar-light-primary').addClass('sidebar-dark-primary');
            localStorage.removeItem("sidebarThemeSwitch");
        }
    }

    function navColorChange(){
        var color = $("#navColor option:selected").attr("class");
        if(!color){
            return;
        }
        var prevColor = localStorage.getItem("navColor");
        if(prevColor){
            $('.main-header').removeClass(prevColor);
        }
        