'; $('#header-links .header-links-list .dropdown #switchConetntByCookie').html(html); }).catch(function(){ console.log("User is not logged in"); }); }