},
zoom: (zoom) => {
const currentZoom = win.webContents.getZoomFactor();
let value
if (zoom >= 0) {
value = currentZoom + 0.1;
} else {
value = currentZoom - 0.1;
}
if (value >= 0.75 && value <= 5.0) {
win.webContents.zoomFactor = value
p3x.onenote.conf.set('zoom', win.webContents.zoomFactor)
}
},
get zoomFactor() {
return (win.webContents.zoomFactor * 100).toFixed(0)