var remote = require('electron').remote;
var webFrame = require('electron').webFrame;
var ipcRenderer = require('electron').ipcRenderer;

var config = remote.getGlobal('config');

function setupZoom () {
  webFrame.setZoomLevel(config.get('zoom'));
  ipcRenderer.on('update-zoom-level', function (event) {
    webFrame.setZoomLevel(config.get('zoom'));
  });
}

module.exports = setupZoom;

@@ -299,16 +299,52 @@
 vent) %7B%0A
+    var level = config.get('zoom');%0A
     webF
@@ -343,32 +343,38 @@
     webFrame.set
+Visual
 ZoomLevel(config
@@ -366,35 +366,106 @@
 oomLevel
-(config.get('zoom')
+Limits(1, 1);%0A    webFrame.setZoomLevel(level);%0A    webFrame.setVisualZoomLevelLimits(1, 3
 );%0A  %7D);

Reset pinch to zoom scale when updating zoom