Disable zoom on UI (darwin).

pull/1/head
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
1 changed files with 5 additions and 1 deletions

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