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

Function zoomIn

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

Source from the content-addressed store, hash-verified

351 }
352 },
353 async zoomIn({ count, tabId }) {
354 const currentZoom = await chrome.tabs.getZoom(tabId);
355 const newZoom = nextZoomLevel(currentZoom, count);
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);

Callers

nothing calls this directly

Calls 1

nextZoomLevelFunction · 0.85

Tested by

no test coverage detected