(webContents: electron.WebContents)
| 28 | } |
| 29 | |
| 30 | export function increaseZoomLevel(webContents: electron.WebContents): void { |
| 31 | const newZoom = Math.min(MaxZoomLevel, webContents.getZoomFactor() + ZoomDelta); |
| 32 | webContents.setZoomFactor(newZoom); |
| 33 | broadcastZoomFactorChanged(newZoom); |
| 34 | } |
| 35 | |
| 36 | export function decreaseZoomLevel(webContents: electron.WebContents): void { |
| 37 | const newZoom = Math.max(MinZoomLevel, webContents.getZoomFactor() - ZoomDelta); |
no test coverage detected