Disable zoom on UI (darwin).

This commit is contained in:
Daniel Scalzi 2018-04-12 18:13:09 -04:00
parent 05ebb80f19
commit f257208e2f
No known key found for this signature in database
GPG Key ID: 5CA2F145B63535F9

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(){