()
| 1283 | }); |
| 1284 | |
| 1285 | const selectedTab = document.getElementById(`${tabName}-tab`); |
| 1286 | if (selectedTab) { |
| 1287 | selectedTab.classList.remove('hidden'); |
| 1288 | } |
| 1289 | |
| 1290 | const selectedBtn = document.querySelector(`[data-tab="${tabName}"]`); |
| 1291 | if (selectedBtn) { |
| 1292 | selectedBtn.classList.add('bg-Ragnar-600'); |
| 1293 | selectedBtn.classList.remove('text-gray-300', 'hover:text-white', 'hover:bg-gray-700'); |
| 1294 | } |
| 1295 | |
| 1296 | loadTabData(tabName); |
| 1297 | |
| 1298 | if (tabName === 'config') { |
| 1299 | try { refreshSensingInstallCard(); syncRusenseTabToggle(); syncTerminalToggle(); syncMeshTabToggle(); } catch (e) { /* ignore */ } |
| 1300 | } |
| 1301 | |
| 1302 | const mobileMenu = document.getElementById('mobile-menu'); |
| 1303 | if (mobileMenu) { |
nothing calls this directly
no test coverage detected