(webContents: electron.WebContents)
| 34 | } |
| 35 | |
| 36 | export function decreaseZoomLevel(webContents: electron.WebContents): void { |
| 37 | const newZoom = Math.max(MinZoomLevel, webContents.getZoomFactor() - ZoomDelta); |
| 38 | webContents.setZoomFactor(newZoom); |
| 39 | broadcastZoomFactorChanged(newZoom); |
| 40 | } |
| 41 | |
| 42 | export function resetZoomLevel(webContents: electron.WebContents): void { |
| 43 | webContents.setZoomFactor(1); |
no test coverage detected