()
| 1077 | } |
| 1078 | |
| 1079 | function applyRusenseTabVisibility() { |
| 1080 | const visible = _rusenseTabVisible(); |
| 1081 | document.querySelectorAll('.rusense-nav').forEach(btn => btn.classList.toggle('hidden', !visible)); |
| 1082 | // If the tab is hidden while it's the active one, fall back to the dashboard. |
| 1083 | if (!visible && typeof currentTab !== 'undefined' && currentTab === 'rusense') { |
| 1084 | showTab('dashboard'); |
| 1085 | } |
| 1086 | syncRusenseTabToggle(); |