(request)
| 171 | // Selects the tab with the ID specified in request.id |
| 172 | // |
| 173 | async function selectSpecificTab(request) { |
| 174 | const tab = await chrome.tabs.get(request.id); |
| 175 | // Focus the tab's window. TODO(philc): Why are we null-checking chrome.windows here? |
| 176 | if (chrome.windows != null) { |
| 177 | await chrome.windows.update(tab.windowId, { focused: true }); |
| 178 | } |
| 179 | await chrome.tabs.update(request.id, { active: true }); |
| 180 | } |
| 181 | |
| 182 | function moveTab({ count, tab, registryEntry }) { |
| 183 | if (registryEntry.command === "moveTabLeft") { |
no test coverage detected