Skip to content

Commit 61b40fe

Browse files
committed
Fix typo in zoom handler
1 parent 7a04544 commit 61b40fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

electron/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function createWindow() {
4747
mainWindow.webContents.on('zoom-changed', (event, zoomDirection) => {
4848
const currentZoom = mainWindow.webContents.getZoomFactor()
4949
if (zoomDirection === 'in') {
50-
win.webContents.setZoomFactor(currentZoom + 0.1)
50+
mainWindow.webContents.setZoomFactor(currentZoom + 0.1)
5151
}
5252
if (zoomDirection === 'out' && currentZoom > 0.2) {
5353
mainWindow.webContents.setZoomFactor(currentZoom - 0.1)

0 commit comments

Comments
 (0)