0

i want to reload window when user click on the icon. i tried to use window.location.reload() but its doenot work and i dont know why. if you have any case to resolve this issue please write about this. thanks for help popup-js:

  $(document).ready(function() {
   let  icons =  document.getElementsByClassName('icon');
   for( let icon of icons){
    icon.addEventListener('click',function(){
       let imgSrc = icon.src;
       chrome.storage.local.set({key: imgSrc});
       window.location.reload();

     })
   } 
})

0 Answers0