Issues (35)

dist-backup/js/app_MenuTabClick.js (1 issue)

1
window.addEventListener('load', function() {
2
    setTimeout(() => {
3
        if(window.location.hash) {
4
            const els = document.querySelectorAll('[aria-controls="'+window.location.hash.substring(1)+'"]');
5
            if(els.length) {
6
                el = els[0];
0 ignored issues
show
The variable el seems to be never declared. Assigning variables without defining them first makes them global. If this was intended, consider making it explicit like using window.el.
Loading history...
7
                if ("#"+el.getAttribute('aria-controls') === window.location.hash) {
8
                    el.firstChild.click();
9
                    el.firstChild.style.fontWeight = 'bold';
10
                    el.firstChild.style.color = '#0071c4';
11
                };
12
            }
13
        }
14
    }, 500);
15
});
16