nav issue fixed

This commit is contained in:
M Sarmad Qadeer 2022-10-27 17:29:12 +05:00
parent 1d4a3430c4
commit a12aa31ce6

View File

@ -142,6 +142,7 @@ const themeSwitch = () => {
}
}
const nav = document.querySelector('header nav');
window.addEventListener('click',(e)=>{
if(e.target.closest('.nav-link')){
if(e.target.closest('.nav-link').classList.contains('active')){