MCPcopy
hub / github.com/philc/vimium / zoomOut

Function zoomOut

background_scripts/main.js:358–362  ·  view source on GitHub ↗
({ count, tabId })

Source from the content-addressed store, hash-verified

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 },

Callers

nothing calls this directly

Calls 1

nextZoomLevelFunction · 0.85

Tested by

no test coverage detected