Only load the network tab when switching once.

This commit is contained in:
Robert Strouse 2023-07-04 09:10:21 -07:00
parent 2c02306b24
commit d5a237acea
2 changed files with 0 additions and 7 deletions

View file

@ -638,13 +638,6 @@
wifi.loadNetwork();
break;
}
if (tab.getAttribute('data-grpid') === 'divNetworkSettings') {
// Only load the networks if we need them.
//if(new Date().getTime() - parseInt(document.getElementById('divAps').getAttribute('data-lastloaded'), 10) > 60000)
// wifi.loadAPs();
wifi.loadNetwork();
}
let grp = document.getElementById(tab.getAttribute('data-grpid'));
if (typeof grp !== 'undefined' && grp) grp.style.display = '';
}