({ count, tabId })
| 356 | chrome.tabs.setZoom(tabId, newZoom); |
| 357 | }, |
| 358 | async zoomOut({ count, tabId }) { |
| 359 | const currentZoom = await chrome.tabs.getZoom(tabId); |
| 360 | const newZoom = nextZoomLevel(currentZoom, -count); |
| 361 | chrome.tabs.setZoom(tabId, newZoom); |
| 362 | }, |
| 363 | async zoomReset({ tabId }) { |
| 364 | chrome.tabs.setZoom(tabId, 0); // setZoom of 0 sets to the tab default. |
| 365 | }, |
nothing calls this directly
no test coverage detected