Why this code doesn’t work on Google Chrome

I’ve got code like below, any ideas why this code work on Mozille Firefox and doesn’t on Google Chrome ?
I tried to do something with if statement and for ( let of elements), but nothing helps.
There is no error in browser console.
active_item_2 can’t be added on Google Chrome.
It should work without reloading the page. On Mozilla Firefox everything is ok.

app_shop.run(function() {
  const elements = document.getElementsByClassName('active_filter');
  if (elements) {
    for (let el of elements) {
      el.parentElement.classList.add('active_item_2');
    }
  }
}, [3, 4], '#Filters', true);