We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a04544 commit 61b40feCopy full SHA for 61b40fe
1 file changed
electron/main.js
@@ -47,7 +47,7 @@ function createWindow() {
47
mainWindow.webContents.on('zoom-changed', (event, zoomDirection) => {
48
const currentZoom = mainWindow.webContents.getZoomFactor()
49
if (zoomDirection === 'in') {
50
- win.webContents.setZoomFactor(currentZoom + 0.1)
+ mainWindow.webContents.setZoomFactor(currentZoom + 0.1)
51
}
52
if (zoomDirection === 'out' && currentZoom > 0.2) {
53
mainWindow.webContents.setZoomFactor(currentZoom - 0.1)
0 commit comments