()
| 598 | } |
| 599 | |
| 600 | function toggleFavorite() { |
| 601 | activeTab = tabs.get(activeTabId); |
| 602 | if (activeTab.isFavorite) { |
| 603 | removeFavorite(activeTab.uri, () => { |
| 604 | activeTab.isFavorite = false; |
| 605 | updateFavoriteIcon(); |
| 606 | }); |
| 607 | } else { |
| 608 | addFavorite(favoriteFromTab(activeTabId), () => { |
| 609 | activeTab.isFavorite = true; |
| 610 | updateFavoriteIcon(); |
| 611 | }); |
| 612 | } |
| 613 | } |
| 614 | |
| 615 | function addControlsListeners() { |
| 616 | let inputField = document.querySelector('#address-field'); |
no test coverage detected