Disable zoom on UI (darwin).

This commit is contained in:
Daniel Scalzi committed 2018-04-12 18:13:09 -04:00
1 parent 05ebb80f19
commit f257208e2f
1 file changed
+5 -1
+5 -1
View File
@@ -5,7 +5,11 @@
* modules, excluding dependencies.
*/
const $ = require('jquery');
const {remote, shell} = require('electron')
const {remote, shell, webFrame} = require('electron')
// Disable zoom, needed for darwin.
webFrame.setVisualZoomLevelLimits(1, 1)
webFrame.setLayoutZoomLevelLimits(0, 0)
/* jQuery Example
$(function(){