| 825 | manualActionDropdown.addEventListener('change', () => { |
| 826 | window.manualActionPreference = manualActionDropdown.value; |
| 827 | }); |
| 828 | } |
| 829 | |
| 830 | const automationToggleBtn = document.getElementById('automation-toggle-btn'); |
| 831 | if (automationToggleBtn) { |
| 832 | automationToggleBtn.addEventListener('click', handleAutomationToggle); |
| 833 | } |
| 834 | } |
| 835 | |
| 836 | function initializeTabs() { |
| 837 | // Honor a deep-link hash so cross-unit mesh launch buttons land on the |
| 838 | // right feature, e.g. #traffic, #threat-intel, #network/watchtower. Falls |