()
| 307 | |
| 308 | // Update reload button for the active tab |
| 309 | function updateReloadButton() { |
| 310 | if (activeTabId == INVALID_TAB_ID) { |
| 311 | return; |
| 312 | } |
| 313 | |
| 314 | let activeTab = tabs.get(activeTabId); |
| 315 | |
| 316 | let btnReload = document.getElementById('btn-reload'); |
| 317 | if (!btnReload) { |
| 318 | refreshControls(); |
| 319 | return; |
| 320 | } |
| 321 | |
| 322 | btnReload.className = activeTab.isLoading ? 'btn-cancel' : 'btn'; |
| 323 | } |
| 324 | |
| 325 | // Update lock icon for the active tab |
| 326 | function updateLockIcon() { |
no test coverage detected