Fixing default zoom level (darwin).

This commit is contained in:
Daniel Scalzi 2018-04-12 18:39:31 -04:00
parent f257208e2f
commit 2a551f18ba
No known key found for this signature in database
GPG Key ID: 5CA2F145B63535F9

View File

@ -8,6 +8,7 @@ const $ = require('jquery');
const {remote, shell, webFrame} = require('electron') const {remote, shell, webFrame} = require('electron')
// Disable zoom, needed for darwin. // Disable zoom, needed for darwin.
webFrame.setZoomLevel(0)
webFrame.setVisualZoomLevelLimits(1, 1) webFrame.setVisualZoomLevelLimits(1, 1)
webFrame.setLayoutZoomLevelLimits(0, 0) webFrame.setLayoutZoomLevelLimits(0, 0)